Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve async logic to scale better #173

Open
switschel opened this issue Jun 20, 2024 · 1 comment
Open

Improve async logic to scale better #173

switschel opened this issue Jun 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@switschel
Copy link
Collaborator

Currently some async logic is implemented e.g. processing Messages are mainly done async. Still, the code blocks executed asynchronously contains too much logic.

To better scale the Dispatchers should be optimized in not only calling processMessage asynchronously but also other methods.
For example:

  1. Thread receives the messages --> forward to dispatcher
  2. Thread process the message by replacing substitutes
  3. ...
  4. Sends the message to C8Y or outbound to Connector

Every "heavy" and cpu-intensive processing should be handled asynchronously if possible.

@switschel switschel added the enhancement New feature or request label Jun 20, 2024
@switschel
Copy link
Collaborator Author

This issue will be addressed with the upcoming Spring Boot 3.0.x update and leverage Virtual Threads.
We already implemented something in the following branch https://github.com/Cumulocity-IoT/cumulocity-dynamic-mapper/tree/virtualThreads but waiting for the "new" Microservice SDK is released so we can officially use Virtual Threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant