Java

Why not CompletableFuture? Reactive Programming is the Rescue!

For many use cases, when you have to perform compute-intensive work, make network calls, or execute some parallel processing, we tend to go with multi-threading. Some temporary threads are spawned to process smaller tasks and merged back to the main request thread post-processing. CompletableFutures CompletableFutures were introduced...

by rajat.rastogi
Tag: concurrency
26-Aug-2023

AWS, DevOps

Concurrency and Parallelism using Python

As we know Python supports multiple approaches for concurrent programming with threads, sub-processes and some other ways which could help achieving solutions built on multiple CPUs or multi-core CPU.   I tried implementing something similar on my existing use case for AWS Security Re-Check where I was running a check on...

by Sakshi Singhal
Tag: concurrency
14-Jul-2016

Grails

Groovy Goodness – ReadWriteLocks

We often use synchronization. Imagine you have a use case in which there is some resource upon which writing is not done as much as compared to reading. So multiple threads should be able to read concurrently same resource without any problems. But if a single thread wants to write to the resource, for that all new threads for reading...

by Parampreet Singh
Tag: concurrency
02-Dec-2014