Code Monkey home page Code Monkey logo

asyncjavamicroservice's Introduction

AsyncJavaMicroservice

Asynchronous Java based Microservice Prototype

Description

This project allows to fastly create a basic micorservice based on asynchronous processes.

Acting simultaneously as a server and REST client the prototype includes several ways to make async calls to other remote resources.

By using CompletableFuture the Prototype shows how to spawn simultaneous async threads and merging the result in a single response.

The Prototype is extensively based on Jersey and the Jersey Rx Library.

Please read a motivations at http://itpieceofadvice.blogspot.ie/2015/06/lightNIOJavamicroservice.html

Web Server

The web server is Grizzly. Completely async managed requests.

No more sync Tomcat for us.

Stop Spring!

If you want your apps are slow and heavy, it´s up to you.

This Prototype is 100% Spring free for several reason (read the blog link).

Microservice

The artifact is an uber jar file from the Maven Shade Plugin.

REST Clients

The included types are:

Plain Asynchronous client Reactive based client Observable client

In order to easily comare times a synchronous client has been included.

REST Servers

All services handle asynchronously the requests, returning aggregation of Futures and Observable.

Features

Jersey based Integration Test Exception handling Performance log.

Ideal for dashboarding your services.

Identity Service Performance Service with metrics.

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.