Is there a future for Scala Future? Or is there only ZIO?

Concurrency in Scala How plain Scala approaches concurrency? Future “monad” is the answer (actor model was also part of Scala but got deprecated in Scala 2.10). Everyone used or use Scala Futures. People coming to Scala from Java are thrilled by the API it offers (comparing to Java Future). It is also quite fast, nicely composable. As a result Future is the first choice everywhere where the asynchronous operation is required. So it is used for both performing time consuming

Continue Reading

Scala – tagged types

Data types in a programming language are the description or classification of the data that instructs the compiler how to treat the data. Of course, they are not only for the compiler or interpreter but also for us, the developers, as they help us understand the code big time. This is a valid definition of the data which type is Map[String, String]: [crayon-6145ed8dc2920050284052/] This is the valid definition for our domain because both, booking and payment ids have the type String. Also

Continue Reading

ElasticMQ – the SQS power available locally

Amazon Simple Queue Service (Amazon SQS) is a distributed message queuing service. It is similar to other well-known messaging solutions like RabbitMQ, ActiveMQ, etc. but it is hosted by Amazon. It is a really fast, configurable and relatively simple messaging solution. In my current company we strongly rely on the AWS infrastructure. One major Amazon cloud component we use is the SQS (Simple Queue Service). It allows us to decouple components in the application. We also send lots of notification through SQS

Continue Reading
Skip to toolbar