squbs (pronounced "skewbs") is a suite of components enabling standardization and operationalization of Akka and Akka HTTP applications/services in a large scale, managed, cloud environment. It standardizes how Akka applications are deployed in different environments and how they are hooked up to the operational environments of large, internet-scale organizations.
Unicomplex: The micro-container that bootstraps and standardizes the deployment of Akka applications and how they are configured, allowing teams other than PD to understand the configuration and tweak the configuration of applications, partly at runtime, as needed. In addition, the Unicomplex encourages coexistence of different modules, called cubes, and/or operational tooling in a flexible, loosely-coupled fashion that will not incur any code change in order to include new ops tooling or drop out/change some ops tooling. For instance, in cases where we have mixed cloud environments such as private and public cloud needing different operational tools, the same codebase will work with both allowing deployment-time addition of environment-specific tooling.
TestKit: Used to help test applications written for squbs, or even Akka applications altogether. It provides unit test and small scale load testing facilities that can be run as part of CI.
ZKCluster: A ZooKeeper-based, datacenter-aware clustering library allowing clustered applications or services to span datacenter and hold the availability characteristics across data centers. This is needed for applications that need intra-cluster communications.
HttpClient: An operationalized, simplified client that supports both environment and endpoint resolution to fit into different operational environments (QA, Prod) as well as organizational requirements (Topo, direct).
Pattern: A set of programming patterns and DSLs provided to users.
- Orchestration DSL allowing developers to describe their orchestration sequence in an extremely concise manner while running the whole orchestration asynchronously, thus largely simplifying code and reduces latency for the application.
- Asynchronous systems depend heavily on timeouts and fixed timeouts are never right. TimeoutPolicy allows users to set policy (like 2.5 sigma) instead of fixed timeout values and takes care of the heuristics by itself allowing systems to adapt to their operating conditions.
- Validation provides an Akka HTTP directive for data validation by using Accord Validation Library.
- PersistentBuffer provides a high-performance Akka Streams flow buffer component that persists its content to a memory-mapped file and recovers the content after failure and restart.
ActorRegistry: A core lookup facility allowing actors of loosely-coupled modules to find each others, or even to model different services as actors.
ActorMonitor: An add-on operational module that uses JMX to report the stats and behavior of actors in the system. These stats can be seen by any JMX tooling
Pipeline: An infrastructure allowing sequencing and plugging in of request/response filters. These are used, for instance, for security, rate limiting, logging, etc. Each of the components have virtually no dependency on each others. They are truly loosely coupled. Developers and organizations are free to pick and choose the components needed for their environment.
Console: A drop-in module allowing web access to system and application stats through a simple web and service interface returning pretty-printed JSON.
The easiest way to getting started is to create a project from one of the squbs templates. The followings are currently available giter8 templates:
- squbs-scala-seed: Template for creating sample squbs scala application
- squbs-java-seed: Template for creating sample squbs java application
- Principles of squbs Design
- Unicomplex & Cube Bootstrapping
- Unicomplex Actor Hierarchy
- Runtime Lifecycle & API
- Implementing HTTP(S) Services
- Akka HTTP Client on Steroids
- Request/Response Pipeline
- Marshalling and Unmarshalling
- Testing squbs Applications
- Clustering squbs Services using ZooKeeper
- Blocking Dispatcher
- Message Guidelines
- Actor Monitor
- Orchestration DSL
- Actor Registry
- Admin Console
- Application Lifecycle Management
- Resource Resolution
- Akka Streams
- Timeout Policy
Please find release notes at https://github.com/paypal/squbs/releases.