centiservice / mats3

Mats3: Message-based Asynchronous Transactional Staged Stateless Services
https://mats3.io/
Other
63 stars 7 forks source link

context.nextDirect(): Ability to jump to next stage within the same stage demarcation. #33

Closed stolsvik closed 2 years ago

stolsvik commented 3 years ago

For some scenarios - cache check and population - it would be nice if it was possible to check something, if that wasn't there, do a request to get it there, otherwise do next.

However, that leads to a completely uncessesary stage jump, implying a message to MQ and a message from MQ to the next stage.

This could be elided, by way of simply "invoking" the lambda of the next stage within the running stage.

Evaluate this idea.