GithubHelp home page GithubHelp logo

reactivesse's Introduction

Spring-boot-netty server.

This is an SSE server designed to push the event in a certain interval.

Required:

  • JDK11
  • gradle

Compile:

 gradle clean build

Run:

Note: No additional parameter required right now
java -jar build/libs/netty-0.0.1-SNAPSHOT.jar

EndPoints:

  1. Request: SSE end point

    • Method

        GET
      
    • path

        /public/ping/subscribe
      

    Response

    • Media type: Content-Type: text/event-stream;charset=UTF-8

        {"id":"e26e1c66-98a9-4cc7-8d36-347ace6ce810","epoch":1616665061,"time":"15:37:41","event":"PING","data":" id->1 total consumer->:1"}
        {"id":"1f902d1e-4b19-46b6-ab54-0b3d840437e5","epoch":1616665055,"time":"15:37:35","event":"PING","data":" id->1 total consumer->:1"}
      
  2. Request: REST endpoint(A large html file)

    • Method

        GET
      
    • path

        /public/file
      

    Response

    • Media type: Content-Type: text/html;charset=UTF-8

        <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"> ................. </html>
      

CPU-THREAD-MEMORY- usage.

used visualvm to measure the stat.

Initial stat: No load.

initial

Initial stat: No load. Threads-1

initial

100 individual SSE client connected concurrent.

initial

100 individual Rest client concurrent

initial

100 SSE & 10 individual Rest client concurrent - Jmeter

initial

100 SSE & 10 individual Rest client concurrent - App stat

initial

100 SSE & 10 individual Rest client concurrent - APP Threads

initial

100 SSE & 10 individual Rest client concurrent thread ENDED - APP stat

initial

reactivesse's People

Watchers

James Cloos avatar MD Ruhul Amin avatar

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.