Skip to content

A Kikaha web application with Rocker template framework, Hazelcast in-memory data grid, Redis in-memory data structure store, Async HTTP client, S3 command-line tool mapping, Swagger, JWT and Zookeeper implementation.

jmilagroso/kikaha.rocker

Repository files navigation

kikaha.rocker Build Status

A Kikaha web application with Rocker template framework, Hazelcast in-memory data grid, Redis in-memory data structure store, Async HTTP client, S3 command-line tool mapping, Swagger, JWT and Zookeeper implementation.

Kikaha

Kikaha aims to be an absurdly fast Java web server designed for microservices. Written over Undertow platform (you know, it is really fast ⚡), it was designed to be a micro container that handle high throughput demands and provide high scalability. Its internal design is clean-code-driven, because open source software should be easy to be improved. Also, we believe on the JVM communities, what they have done, the goals we already achieved and on its improvements. This make we proud to contribute to JVM, the fastest web platform ever.

Rocker

Rocker is a Java 8 optimized (runtime compat with 6+), near zero-copy rendering, speedy template engine that produces statically typed, plain java object templates that are compiled along with the rest of your project. No more "warm-up" time in production, slow reflection-based logic, or nasty surprises that should have been caught during development.

Hazelcast

Hazelcast is an open source in-memory data grid based on Java.

Redis

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

a-redis is a java client for the Redis Cache server designed for performance and efficiency in terms of utilization of Connections and Threads

Async Http Client

Async Http Client a asynchronous Http and WebSocket Client library for Java.

S3 Async Support

s3cmd tool for Amazon Simple Storage Service (S3)

JWT

jwt Java implementation of JSON Web Token (JWT)

Swagger

Swagger is the world’s largest framework of API developer tools for the OpenAPI Specification(OAS), enabling development across the entire API lifecycle, from design and documentation, to test and deployment.

Apache Zookeeper

Apache Zookeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. Each time they are implemented there is a lot of work that goes into fixing the bugs and race conditions that are inevitable. Because of the difficulty of implementing these kinds of services, applications initially usually skimp on them ,which make them brittle in the presence of change and difficult to manage. Even when done correctly, different implementations of these services lead to management complexity when the applications are deployed.

Apache Curator

Apache Curator is a Java/JVM client library for Apache ZooKeeper, a distributed coordination service. It includes a highlevel API framework and utilities to make using Apache ZooKeeper much easier and more reliable. It also includes recipes for common use cases and extensions such as service discovery and a Java 8 asynchronous DSL.

Setup Development

$ git clone git@github.com:jmilagroso/kikaha.rocker.git
$ cd kikaha.rocker
$ curl -s http://download.kikaha.io/installer | bash
$ kikaha run_app

Setup Staging/Production

$ git clone git@github.com:jmilagroso/kikaha.rocker.git
$ cd kikaha.rocker
$ mvn clean package kikaha:package
$ cd output/ && unzip kikaha.rocker-1.0.0.zip
$ cd kikaha.rocker-1.0.0
$ chmod a+x bin/kikaha.sh
$ sh bin/kikaha.sh start

Memory Adjustment

$ export KIKAHA_JVM_OPTS="-Xms2g -Xmx2g"

DataSource Connection Pool Adjustment

# resources/application.yml (http://www.vibur.org/#configuration-settings)
  ...
  datasources:
    default:
      pool-initial-size: 1000
      pool-max-size: 5000
      pool-fair: true
      ...
  ...

Examples

* Async Redis example -> kikaha.app.routes.ARedisResource
* Async HTTP Client example -> kikaha.app.routes.AsyncResource, 
                               kikaha.app.routes.WazeResource
* Hazelcast example -> kikaha.app.routes.HazelCastResource
* Rocker example -> kikaha.app.routes.HomeResource
* JWT example -> kikaha.app.routes.JWTResource
* S3 example -> kikaha.app.routes.S3Resource, 
                kikaha.app.services.S3
* Undertow and Mongo example -> kikaha.app.routes.UndertowResource
* Swagger Integration example -> kikaha.app.routes.SwaggerResource
                                 kikaha.app.routes.SwaggerUIResource
* Zookeeper Integration example -> kikaha.app.routes.ZookeeperResource                                 

License

This code is distributed using the Apache license, Version 2.0.

Contributors

About

A Kikaha web application with Rocker template framework, Hazelcast in-memory data grid, Redis in-memory data structure store, Async HTTP client, S3 command-line tool mapping, Swagger, JWT and Zookeeper implementation.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages