We have prepared a new example of how to execute FlowStream, send data and receive a response.
Custom FlowStream execution
We have prepared a simple app (called FlowStreamExec
) that allows you to execute a custom FlowStream with some data and wait until the end of the message process. So you can use the FlowStream as a final workflow or a predefined algorithm in e.g. Serverless app.
We have prepared a simple function FUNC.exec()
in this app that creates a new FlowStream instance, then tries to find a component Exec
that makes a new FlowMessage
with the end
event. Finally, the end
event performs a callback with a transformed message data.
The FlowStreamExec app can work only with generated design, so you need to create/edit design in another app, e.g. TMS
or FlowStream
app. Please follow the readme file in the FlowStreamExec
repository.
Good to know:
- you can load FlowStream from various sources, not only from HDD
- you can trigger various kinds of data like String/Number/Object/Buffer/Date/Boolean/Stream
- the
Exec
component is used as the input/trigger component
Usage
The possibilities are enormous, and you can run your FlowStreams in various services or attach the FlowStream into the Serverless architecture on AWS.
Other posts from Total.js Platform
- 2024-12-22Merry Christmas and a Happy New Year 2025!
- 2024-12-10Total.js UI Builder: How to upload files?
- 2024-12-04Performance Testing: Total.js vs. Koa
- 2024-12-03Total.js UI Builder: Creating a Form
- 2024-12-02November report 2024
- 2024-11-26Total.js V5: Schemas and Actions
- 2024-11-25QueryBuilder in Action Part 1
- 2024-11-13Benchmarking Node.js Frameworks: selecting your framework for 2025!
- 2024-11-01October report 2024
- 2024-10-22Performance Testing: Total.js vs. NestJS