Skip to content

Make Hazelcast easy to use from Scala

License

BSD-3-Clause, Unknown licenses found

Licenses found

BSD-3-Clause
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

karlroberts/scazelcast

Repository files navigation

Scazelcast

The intention for Scazelcast is to produce a simple wrapper library for the hazelcast distributed cache/memory grid.

The wrapper will make it easier to use from a Scala program, ie hide all the messy Java stuff.

IN addition there are some higher level libraries, such as scazelcast-akka that create an Akka Actor abstraction to the underlying hazelcast grid. This allows us to use Hazelcast from Akka in a non blocking reactive manner

Jars

The project is broken into a number of separate .jar files that depend on each other hierarchically

  • scazelcast-api

    • Pimps and wrappers for Hazelcast.
  • scazelcast-types

    • Additional distributed data structures built on top of hazelcast low level API, more suited to functional programming.
  • scazelcast-akka

    • Depends on scazelcast-api.
    • Transmogrify the scalzelcast API into an Akka Actor for nice non-blocking reactive use.
  • scazelcast-demo

    • Depends on scazelcast-akka.
    • Working web-app using Spray-IO and scazelcast-akka to demo and play with use cases.

Usage

Add the following to your project's project/plugins.sbt file:-

//resolver for sbt-s3-resolver
resolvers += "Era7 maven releases" at "http://releases.era7.com.s3.amazonaws.com"

addSbtPlugin("ohnosequences" % "sbt-s3-resolver" % "0.12.0")

Add the following lines to your projects build.sbt:-

resolvers += Resolver.url("owtelse-repo-oss", new URL("https://s3-ap-southeast-2.amazonaws.com/owtelse-repo-oss/"))(Resolver.ivyStylePatterns)

libraryDependencies ++= {
  val scazelcastV = "2.11-0.2.2-20150914102020-04d1469"
  Seq(
    "com.owtelse"       %   "scazelcast-api"      % scazelcastV
  )
}

Features implemented

scazelcast-api

Map

  • Get and Put return an Option[V] and trap exceptions to produce None

scalzelcast-types

scalzelcast-akka

  • Basic Actor for asynchronously getting and putting from a hazelcast IMap.

TODO

About

Make Hazelcast easy to use from Scala

Resources

License

BSD-3-Clause, Unknown licenses found

Licenses found

BSD-3-Clause
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Packages

 
 
 

Languages