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 (Since R2020b)
compiler.build.ProductionServerArchiveOptionsOptions for building deployable archives (Since R2020b)
compiler.package.microserviceDockerImageCreate a microservice Docker image using files generated by MATLAB Compiler SDK (Since R2022a)
compiler.package.MicroserviceDockerImageOptionsCreate a microservice Docker options object (Since R2022a)
compiler.build.ResultsCompiler build results object (Since R2020b)
compiler.runtime.createInstallerDockerImageCreate a MATLAB Runtime installer Docker image on offline machines (Since R2022b)
compiler.runtime.createDockerImageCreate a Docker image that contains MATLAB Runtime (Since R2023b)

Topics