Main Content

Microservices

Deploy MATLAB® functions as microservice

You can deploy MATLAB functions as a microservice by packaging them into a Docker container. The microservice Docker container provides an HTTP or HTTPS endpoint to the MATLAB function and accepts RESTful requests.

To deploy a MATLAB function as a microservice, you package a MATLAB function into a deployable archive, and then create a Docker image that contains the archive and a minimal MATLAB Runtime package. You can then run the microservice Docker image and make RESTful requests to the service using any programming language that has HTTP libraries, including MATLAB Production Server™ client APIs.

Functions

compiler.build.productionServerArchiveCreate an archive for deployment to MATLAB Production Server or Docker
compiler.build.ProductionServerArchiveOptionsOptions for building deployable archives
compiler.package.microserviceDockerImageCreate a microservice Docker image using files generated by MATLAB Compiler SDK
compiler.package.MicroserviceDockerImageOptionsCreate a microservice Docker options object
compiler.build.ResultsCompiler build results object
compiler.runtime.createInstallerDockerImageCreate a MATLAB Runtime installer Docker image on offline machines

Topics