Spray is a library written on top of Akka and Scala that allows to quickly create REST interfaces. It is becoming more and more popular in the Scala community because it is easy to use and performant thanks to this asynchronous, actor-based model. This article describes how to efficiently exploit Spray to create a simple […]
Tag Archives: Akka
We’ve been researching how to peform resilient queue processing at high loads lately with a focus on Akka, the Storm Model and Apache Spark / Storm. One thing that came up was the use ofLevelDB; a lightweight key / value store supporting asynchronous atomic batch operations.
What interests me is the createReadStream method provided by the LevelUp package for Node.js. This allows you to iterate over the whole database so may be a suitable candidate for rapid event sourcing.
Because they’re a perfect fit for mega-core processors and they’re safer and more enjoyable to program than raw, multi-threaded, systems, I’ve been a fan of Actor-based concurrent systems ever since I experimented with Erlang and Akka (via its Java API). Thus, as a C++ programmer, I was excited to discover the “C++ Actor Framework” (CAF). […]
Hope you are having fun so far, but our application has serious performance defect. After measuring response times of the
RandomOrgRandom class we developed in the previous part we will notice something really disturbing (the chart represents response times of subsequent invocations in milliseconds):
Maven Web Project Kickstarter Codebase with Spring, Hibernate, Akka, Twitter Bootstrap, Apache Tiles and jQuery
Get started with Java Web App Development as quickly as possible. I am sharing this code with Apache License 2.0. Here is the URL for the same:
- Fun with function composition in Scala
- Scala Tutorial – Scala REPL, expressions, variables, basic types, simple functions, saving and running programs, comments
- Scala Tutorial – Tuples, Lists, methods on Lists and Strings
- Scala Tutorial – conditional execution with if-else blocks and matching
- Scala Tutorial – iteration, for expressions, yield, map, filter, count
- Scala Tutorial – regular expressions, matching
- Scala Tutorial – regular expressions, matching and substitutions with the scala.util.matching API
- Scala Tutorial – Maps, Sets, groupBy, Options, flatten, flatMap
- Scala Tutorial – scala.io.Source, accessing files, flatMap, mutable Maps
- Scala Tutorial – objects, classes, inheritance, traits, Lists with multiple related types, apply
- Scala Tutorial – scripting, compiling, main methods, return values of functions
- Scala Tutorial – SBT, scalabha, packages, build systems
- Scala Tutorial – code blocks, coding style, closures, scala documentation project
- DI in Scala: Cake Pattern pros & cons
- First steps with Scala, say goodbye to bash scripts…
- Scala: Working with Predicates
- Implicit Conversions in Scala
- JavaFX 2.0 and Scala, Like Milk and Cookies
- Variations for computing results from sequences in Scala
- Student Questions about Scala, Part 1
- Scala Basic XML processing
- Processing JSON in Scala with Jerkson
- A crash course in Scala types
- ScaTDD: Casting an eye over three major Test frameworks in Scala
- Power with control: Scala control structures and abstractions
- Getting started with Scala and Scalatra – Part I
- Getting started with Scala and Scalatra – Part II
- Getting started with Scala and Scalatra – Part III
- Getting started with Scala and Scalatra – Part IV
- Starting with Scala Macros: a short tutorial
- Probability distribution for programmers
- Scala: Do you partially understand this?
- Scala: Collections 1
- Scala pattern matching: A Case for new thinking?
- Becoming Acquainted with Scala
- FitNesse your ScalaTest with custom Scala DSL
- Scala traits implementation and interoperability. Part I: Basics
- Scala traits implementation and interoperability. Part II: Traits linearization
- Lazy sequences in Scala and Clojure
- How could Scala do a merge sort?
- Various ways to run Scala code
- How does Scala work it’s Magic?
- Complex Numbers in Scala
- Using Twitter4j with Scala to perform user actions
- Scala: call me by my name please?
- Scala function literals
- Dependency injection with Scala macros: auto-wiring
- Gang of Four Patterns With Type-Classes and Implicits in Scala
- Gang of Four Patterns With Type-Classes and Implicits in Scala (Part 2)
- Future Composition with Scala and Akka
- The best code coverage for Scala
- Scala snippets 1: Folding
- Scala snippets 3: Lists together with Map, flatmap, zip and reduce
I was looking for a simple websocket server for one of my projects to test some stuff with reactive mongo. When looking around, though, I couldn’t really find a simple basic implementation without including a complete framework. Finally I stumbled upon one of Typesage activtor projects:http://typesafe.com/activator/template/akka-spray-websocket. Even though the name implies that spray is required, it actually uses websocket stuff from here: https://github.com/TooTallNate/Java-WebSocket, which provides a very simple to use basic websocket implementation.