Main Content

Enterprise Deployment withMATLABProduction Server

Run MATLAB®code on a server and access it using various clients

MATLAB Production Server™lets you run MATLAB functions on a server and access them via client applications. You create applications in MATLAB, package them using theProduction Server Compilerapp or thecompiler.build.productionServerArchivefunction inMATLAB Compiler SDK™, and deploy them to theMATLAB Production Server. You can also create microservice Docker®images using thecompiler.package.microserviceDockerImagefunction. Access deployed packages through client applications written in Java®, .NET, Python®, C, or C++ using client-specific libraries, or through HTTP/HTTPS requests using the RESTful API.

For information on how to write client applications using the RESTful API, Java, .NET, Python, C, and C++, seeClient Programming(MATLAB Production Server).

Apps

Production Server Compiler MATLABprograms for deployment toMATLABProduction Server

Functions

expand all

productionServerCompiler Test, build and package functions for use withMATLABProduction Server
deploytool Open a list of application deployment apps
compiler.build.productionServerArchive Create an archive for deployment toMATLABProduction ServerorDocker
compiler.build.ProductionServerArchiveOptions Options for building deployable archives
compiler.build.excelClientForProductionServer CreateMicrosoftExceladd-in forMATLABProduction Server
compiler.build.ExcelClientForProductionServerOptions Options for buildingExceladd-ins
compiler.build.Results Compiler build results object
mcc CompileMATLABfunctions for deployment
compiler.build.productionServerArchive Create an archive for deployment toMATLABProduction ServerorDocker
compiler.build.ProductionServerArchiveOptions Options for building deployable archives
compiler.package.microserviceDockerImage Create a microserviceDockerimage using files generated byMATLABCompiler SDKonLinuxoperating systems
compiler.package.MicroserviceDockerImageOptions Create a microserviceDockeroptions object
compiler.build.Results Compiler build results object
mps.json.encode ConvertMATLABdata to JSON text usingMATLABProduction ServerJSON schema
mps.json.decode Convert a character vector or string inMATLABProduction ServerJSON模式MATLABdata
mps.json.encoderequest ConvertMATLABdata in a server request to JSON text usingMATLABProduction ServerJSON schema
mps.json.decoderesponse Convert JSON text from a server response toMATLABdata
prodserver.metrics.incrementCounter CreatePrometheuscountermetric
prodserver.metrics.setGauge CreatePrometheusgaugemetric

Controller

mps.cache.control Create a persistence service controller object
start Start a persistence service and attach it a toMATLABsession
stop Stop a persistence service and detach it from aMATLABsession
restart Restart a persistence service and attach it to aMATLABsession
attach Connect aMATLABsession to a persistence service that is already running
detach DisconnectMATLABsession from a persistence service that is already running
ping Test whether the persistence service is reachable
version Version number for persistence provider

Cache

mps.cache.connect Connect to cache, or create a cache if it doesn't exist
bytes Return the number of bytes of storage used by value stored at each key
clear Remove all keys and values from cache
flush Write all locally modified keys to the persistence service
get Fetch values of keys from cache
getp Get the value of a public cache property
isKey Determine if the cache contains specified keys
keys Get all keys from cache
length Number of key-value pairs in the data cache
purge Flush all local data to the persistence service
put Write key-value pairs to cache
remove Remove keys from cache
retain Store remote keys from cache locally or return locally stored keys

Mutex

mps.sync.mutex Create a persistence service mutex
acquire Acquire advisory lock on persistence service mutex
own Check ownership of advisory lock on a persistence service mutex object
release Release advisory lock on persistence service mutex

Objects

expand all

mps.cache.Controller Manage the life cycle of a persistence service in aMATLABtesting environment
mps.cache.DataCache Represent cache concept inMATLABcode
mps.sync.TimedMATFileMutex Represent a MAT-file persistence service mutex
mps.sync.TimedRedisMutex Represent aRedispersistence service mutex

Topics

Deployable Archive Creation

Microservices

MATLABProgramming to Support In-Memory Caching

MATLABProgramming to Support Custom Metrics

MATLABProgramming Guidelines

Client Applications

Testing

Excel Add-Ins

Parallel Computing

Troubleshooting Excel Add-Ins Deployed toMATLABProduction Server