Do grule engine is thread safe #193
Answered
by
newm4n
ManouchehrRasoulli
asked this question in
Q&A
-
Hi every body i was using this engine in our code base and i was thinking about engine thread safety, do grule engine is thread safe ? |
Beta Was this translation helpful? Give feedback.
Answered by
newm4n
May 18, 2021
Replies: 1 comment
-
Yes, you can see how grule run engines in goroutine concurrently. As long as the context (and the data there in) are not shared, or thread safe. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ManouchehrRasoulli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ManouchehrRasoulli
Yes, you can see how grule run engines in goroutine concurrently.
https://github.com/hyperjumptech/grule-rule-engine/blob/master/examples/Concurrency_test.go
As long as the context (and the data there in) are not shared, or thread safe.