Git Product home page Git Product logo

java-nio-server's Introduction

Java NIO Based Server

Java NIO based server implementation backed by a configurable thread pool implemented from the ground up. The thread pool is capable of handling incoming network connections, processing traffic and sending out data. This implementation is extensible such that a custom message processing logic can be plugged-in. This implementation was tested upto 200 concurrent users with a thread-pool with 5 worker threads.

Task Description: http://www.cs.colostate.edu/~cs455/CS455-Spring14-HW2-PC.pdf

How to compile

  • Running make or make all will compile the source code.
  • 'make clean' will remove the compiled classes and temporary files.

Running

  • To run the server;
    java cs455.scale.server.Server <port_number> <thread_pool_size>

    E.g.: java cs455.scale.server.Server 7077 5

    This will start up the server and prints the host address and port it's bound to.

  • To run the client; java cs455.scale.client.Client <server_host> <server_port> <message_rate>

    E.g.: java cs455.scale.client.Client st-vrain 7077 4

Notes

** When selecting the thread pool size the number of hardware threads available in the physical machine should be taken into consideration.

java-nio-server's People

Contributors

thilinamb avatar

Watchers

 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.