Git Product home page Git Product logo

jmilagroso / kikaha.rocker Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 824 KB

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.

Java 97.12% HTML 2.77% CSS 0.06% Shell 0.05%
undertow kikaha rocker hazelcast mongodb async-redis async-http-client s3cmd jwt swagger zookeeper curator

kikaha.rocker's Introduction

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 [email protected]:jmilagroso/kikaha.rocker.git
$ cd kikaha.rocker
$ curl -s http://download.kikaha.io/installer | bash
$ kikaha run_app

Setup Staging/Production

$ git clone [email protected]: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

kikaha.rocker's People

Contributors

dependabot[bot] avatar jmilagroso avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jmilagroso-c4w

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.