Interacting with docker microservice

4 views (last 30 days)
Marcus
Marcus on 10 Mar 2025
Commented: Marcus on 17 Mar 2025
Hi Support,
When running or compiling a matlab model, I can set callbacks
simulink.compiler.setExternalInputsFcn
simulink.compiler.setPostStepFcn
that are called during runtime and can be used for interacting with the model by manipulating or evaluating input and/or output data.
Is there any thing comparable when compiling and deploying to a microservice?
Aka Webhooks or Websockets or HTTP Streaming which one can bind the callbacks to? If so are there any examples?
Is there an overview of all available API of the microservice?
Thanks.

Answers (1)

praguna manvi
praguna manvi on 14 Mar 2025
As I see you are looking to deploy a Simulink model as a microservice, refer to this useful discussion thread on deploying it as a Docker container image, wrapped inside a MATLAB function:
Refer to the following documentation for more examples of deploying MATLAB functions as a microservice that accepts RESTful requests:
  1 Comment
Marcus
Marcus on 17 Mar 2025
Hi and Thanks for your reply. Unfortunately neither of your links do give an answer to the questions.
The first one is about the plain basics but at least answers the cross-compile issue I have (which I did not ask here though) ;)
From the second link only the subpage microservice-command-arguments-listed-alphabetically does give some clue that there is an API but does not give any details on the API itself.

Sign in to comment.

Categories

Find more on Containers in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!