Create a runtime instance every time or share one? #4799
Answered
by
Noah-Kennedy
ScottLinnn
asked this question in
Q&A
-
I want to let all my microservices run on the current thread and I don't want to use the main macro. Should they use the same single-threaded runtime instance or share the same one? |
Beta Was this translation helpful? Give feedback.
Answered by
Noah-Kennedy
Jun 30, 2022
Replies: 1 comment
-
If you want these microservices to run on the same thread, you should put them all on once shared |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ScottLinnn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 separatecurrent_thread
runtime for each.