ContentElement concurrency #15107
Unanswered
tropcicstefan
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It's not thread-safe indeed. However, most APIs in Orchard Core aren't meant to be, the idea being that in a web app the multithreading you usually need to focus on is serving requests in parallel, not parallelizing within a request. Where exactly do you see this being an issue, which GraphQL operation? (Note that |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think there is a bug in ContentElement, but I am not completely sure so I opened a discussion.
ContentElement
class has_elements
dictionary that is created on propertyElements
and if you ask me that is not thread safe. For instance if you useContentExtensions.Get
in GraphQL which is implemented in parallel, or maybe in handler, you could rewrite entire dictionary and it could lead to unwanted behaviour.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions