Skip to content

Instantly share code, notes, and snippets.

View rafaelqm's full-sized avatar
🎯
Focusing

Rafael Querino Moreira rafaelqm

🎯
Focusing
View GitHub Profile
@rafaelqm
rafaelqm / nginx.conf
Created June 27, 2019 04:34 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@rafaelqm
rafaelqm / nginx-tuning.md
Created June 27, 2019 04:34 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

wget http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_1.4.2-0ubuntu3.1_amd64.deb
sudo dpkg -i libjpeg-turbo8_1.4.2-0ubuntu3.1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/libf/libfontenc/libfontenc1_1.1.3-1_amd64.deb
sudo dpkg -i libfontenc1_1.1.3-1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/libx/libxfont/libxfont1_1.5.1-1ubuntu0.16.04.4_amd64.deb
<style>
@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700);
body {
width: 100vw;
height: 100vh;
overflow: hidden;
background: #2D2B50;
color:#fff;
font-family:Roboto;

Desafio Back-End

Sobre a Vaga

Esse desafio é destinado todos os níveis e não é exigido que você consiga realizar esse desafio por completo.

Sua avaliação será dada pelas etapas que conseguir entregar. Caso você tenha caido aqui por curiosidade sinta-se a vontade para enviar o desafio e aplicar para alguma vaga de backend.

Pré-requisitos

  • Lógica de programação;