glusk / hackathon-2021 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from etrel-development/hackaton-2021
DevOps hackathon for infrastructure setup
This project forked from etrel-development/hackaton-2021
DevOps hackathon for infrastructure setup
Useful resources:
Edit code and Dockerfile
so that a basic docker image of the server can be generated and run.
Fix typos, format code.
console.log()
is synchronous (see: this SO question for more info).
Lets try to disable console logging to see if there are any performance gains.
Requiremenets:
TLS 1.3
TLS_AES_256_GCM_SHA384
,TLS_CHACHA20_POLY1305_SHA256
,TLS_AES_128_GCM_SHA256
,TLS_AES_128_CCM_8_SHA256
,TLS_AES_128_CCM_SHA256
Useful blog post: https://www.haproxy.com/blog/exploring-the-haproxy-stats-page/
The sample should create:
Current README doesn't properly reflect the state of the project.
Correct the npm scripts.
Show how to generate the Docker image and how it can be used.
Move docker-compose.yml
directly into the README and let it serve as a sample.
The challenge is to serve 1M connections.
Useful resource: https://www.haproxy.com/blog/multithreading-in-haproxy/
Why only 4 threads / 4 CPUs? From the link above:
We know that SSL offloading and HTTP compression scale well in a multithreading model, at least on a relatively small number of threads (2 to 4). For other uses or a larger number of threads, we are still in the process of gathering definitive benchmarks and experiences.
Failure to do so shows error on the haproxy stats page, but curiously, still correctly routes the traffic.
The simulator exhibits an unusual amount of disconnects (client side disconnects) when CONCURRENCY_LEVEL
is set to about 10k or more.
Lets try to go through all this
and that
references in the code to see whether they're used appropriately.
https://
Resources:
https://stackoverflow.com/questions/31338927/how-to-create-securetls-ssl-websocket-server
https://nodejs.org/api/tls.html
For now, lets just run:
npm ci
npm run lint
The idea was inspired by the following blog post:
https://guido-barbaglia.blog/compose/
Lets have a single Docker image containing the project source code.
We can use a single image to define services with Docker Compose.
For now, lets add two services:
node-server
node-client
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.