Leverage an existing Java Framework learning Scala.
Think software in a new way.
GigaSpaces is an excellent example of a widely used Java Framework which can be leveraged in Scala to obtain superior productivity and better designed software. It is a scalable application server which offers In-Memory Data Grid features such as data replication and partitioning together with event-driven support, .NET - Java Interoperability, linear scalability and many other features.
In this blog we will try to show how using Scala will bring improvements compared to Java, and we assume you have some knowledge of Java and experience in coding complex software systems. While GigaSpaces will be used as the basis middleware to develop our examples, not all the features will be analyzed in detail, and specifically only the required focus will be put on fault-resistancy and data partitioning. These are two complex features of XAP application server which you are encouraged to discover in GigaSpaces Wiki.
Performance-wise, Scala and Java gets compiled to the same bytecode, and while Scala suffers from longer classloading at startup, the final performances once the code has been JITTED are the same. On the contrary, you might even expect to have better performances because, getting rid of your boilerplate and improving your patterns, you will be able to put the emphasis on writing better algorithms. Our case study will be a simple financial application with a matching engine and a confirmation service. Do you feel ready?