Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question of thread safety ? #99

Closed
emin opened this issue Jun 14, 2021 · 1 comment
Closed

question of thread safety ? #99

emin opened this issue Jun 14, 2021 · 1 comment
Labels
question Further information is requested

Comments

@emin
Copy link

emin commented Jun 14, 2021

Hi,

I've come across this repo, not much experienced with avro. I liked the simple approach this project uses for parsing compared to other alternatives. I want to use in production with millions of requests per minute for encoding, however I want to make sure I've got details right.

My question is that; is the parsed schema thread safe ? Can I parse it once at the start of server for per struct type and use it concurrently ?

@nrwiersma nrwiersma added the question Further information is requested label Jun 15, 2021
@nrwiersma
Copy link
Member

Hi,

Yes, once the schema is parsed it becomes a read only structure and can be used concurrently across multiple encoders/decoders.

@emin emin closed this as completed Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants