Enterprise Deployment with MATLAB Production Server
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 the Production Server Compiler
app or the compiler.build.productionServerArchive
function in MATLAB
Compiler SDK™, and deploy them to the MATLAB
Production Server. You can also create microservice Docker® images using the compiler.package.microserviceDockerImage
function. 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++, see Client Programming (MATLAB Production Server).
Apps
Production Server Compiler | Package MATLAB programs for deployment to MATLAB Production Server |
Functions
Objects
Topics
Deployable Archive Creation
- Create Deployable Archive for MATLAB Production Server
Learn how to package a MATLAB function into a deployable archive for MATLAB Production Server.
Microservices
- Create Microservice Docker Image
Package MATLAB code into a microservice Docker image.
MATLAB Programming to Support In-Memory Caching
- Data Caching Basics
Set up the server to use Redis™, start a persistence service, and create a data cache. - Manage Application State in Deployed Archives
This example describes testing and development workflows to cache data in application archives deployed to the server.
MATLAB Programming to Support Custom Metrics
- Create Custom Prometheus Metrics
This example shows how to create custom Prometheus® metrics on the server and retrieve them using the metrics service.
MATLAB Programming Guidelines
- MATLAB Coding Guidelines
Best practices for writing MATLAB code when deploying to MATLAB Production Server. - State-Dependent Functions
Dealing with MATLAB functions that carry state. - Deploying MATLAB Functions Containing MEX Files
How to include MEX files when deploying MATLAB functions. - Supported MATLAB Data Types for Client and Server Marshaling
List of supported and unsupported MATLAB data types. - Modifying Deployed Functions
How to modify and redeploy MATLAB functions.
Client Applications
- Create MATLAB Production Server Java Client Using MWHttpClient Class
Define an interface, instantiate a proxy object, and then call the deployed function. - Create a C# Client
Learn how to call a MATLAB function deployed to MATLAB Production Server from a C# application. - Create a Python Client
Learn how to call a MATLAB function deployed to MATLAB Production Server from a Python application. - Create a C++ Client
Learn how to call a MATLAB function deployed to MATLAB Production Server from a C++ application.
Testing
- Test Client Data Integration Against MATLAB
Testing the integration code used by your client against MATLAB provides tools for seeing the data that is passed into the MATLAB function
Excel Add-Ins
- Create and Install a Deployable Archive with Excel Integration for MATLAB Production Server
Learn how to create a deployable archive with Excel® integration for MATLAB Production Server using a MATLAB function.
Parallel Computing
- Use Parallel Computing Resources in Deployable Archives
Pass a cluster profile to a deployable archive that uses Parallel Computing Toolbox™ or MATLAB Parallel Server™.
Troubleshooting Excel Add-Ins Deployed to MATLAB Production Server
- XLA File Not Generated
Solution to.xla
file not being generated. - Server Configuration Add-in Not Enabled
Solution to enable Server Configuration add-in. - Error Using a Variable Number of Outputs
Solution to support variable number of outputs.