Interacting with docker microservice

10 次查看(过去 30 天)
Marcus
Marcus 2025-3-10
评论: Marcus 2025-3-17
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.

回答(1 个)

praguna manvi
praguna manvi 2025-3-14
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 个评论
Marcus
Marcus 2025-3-17
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Containers 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by