Coder Social home page Coder Social logo

baajarmeh / borderland Goto Github PK

View Code? Open in Web Editor NEW

This project forked from angular-rust/borderland

0.0 1.0 0.0 66 KB

Application platform powers Loadbalancer, Microservices and API Gateways

License: BSD 2-Clause "Simplified" License

HTML 0.58% Dart 1.76% Rust 95.73% JavaScript 1.93%

borderland's Introduction

Borderland

Build Status License

This project was started from ugly fun example. But this project is not a simple HTTP load balncer. We dont need it. We need to balance our application payload. So let we use somthing like a application bus to communicate with application logic.

Also there standard practice to use external crates(modules,libraries). But lot of them suffer from overprogramming, not clear implementation of specifications and unnecessary extra functionality. So i liked the starter point of project and i would like to use less external code in that project. Because "less code" is mean less errors and faster executon, which is main goal.

Borderland logo

Full Documentation

See the Borderland Project Wiki for full documentation, examples, and operational details.

You may be looking for:

How to run?

Make sure you have cargo installed and run the command cargo run to boot up the server.

Visit locahost:8080 from your browser.

What can it do now?

  1. Say hello world - visit localhost:8888/api/v1

  2. Serve static files - visit localhost:8888/files/index.html - this will serve the index.html file from the www folder in the repo root. Place any other file inside www and they can be served similarly (using the /files prefix - this will be configurable by the user in future, just like in Apache and Nginx).

Roadmap

  • HTTP Scheme redirect to HTTPS by design
  • Moved to MIO
  • Routing
  • Session handling
  • Datastorage
  • Application Bus
  • Internal application logic

Changelog

  • Started profiling coz move to use MIO doesnt give good results
  • HTTP to HTTPS redirect by design
  • HTTPS part and threading
  • Moved to MIO event based handling
  • Detection plain HTTP by magic (similar as unix file command)
  • Headers dump
  • Small fixes to proper static content handling

Benchmark

$ab -n 5000 -kc 500 http://127.0.0.1:8000/

...

Requests per second:    14109.94 [#/sec] (mean)
Time per request:       35.436 [ms] (mean)
Time per request:       0.071 [ms] (mean, across all concurrent requests)

It's sad (((

Legal

License

This work is licensed under the MIT license. See LICENSE for details.

borderland's People

Contributors

dudochkin-victor 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.