Skip to content

Create a runtime instance every time or share one? #4799

Answered by Noah-Kennedy
ScottLinnn asked this question in Q&A
Discussion options

You must be logged in to vote

If you want these microservices to run on the same thread, you should put them all on once shared current_thread runtime. If you want them to each have their own thread, you should use a separate current_thread runtime for each.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ScottLinnn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants