Between two java application layer i have implemented a buffer using BlockingQueue. But don't want any lock when put and take happens -


i building high processing throughput application. between 2 layers, have implemented buffer using blockingqueue. don't want lock when put , take happens.

so queue can use or there other solution lock put , take speed faster.

now facing slowness while take because put faster of time it's locking take. it's making queue grow , slower in processing.

thank you, everyone.

take @ question, looks needs same.

i wouldn't recommend implement own queue, if feel of still slow.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -