Synchronous activity execution without task queue

Hi Team – I have a requirement to execute all steps synchronously.
Can this be done without going via a task queue ?
In this case, i have to execute let’s say 5 activities and respond in 2 seconds with the results.

What is the best way to achieve this.

Regards,

John

You can use local activities for that purpose.
Which SDK?

I am using Java SDK.
Is there some sample that i can look at?

@akrjohn this post might be interesting for you to understand the advantages and drawbacks of using local activities Local Activity vs Activity - #3 by maxim