Questions tagged [nginx]

Nginx is an open-source, lightweight proxy and load-balancer for several web and email protocols.

Nginx is an open-source, lightweight proxy and load-balancer for several web and email protocols.

22 questions
19
votes
4 answers

Rate limiting *un*-authenticated requests

Say we have a load balancer that also does rate limiting. Rate limiting seems pretty straightforward for logged-in users - just look at the JWT and maybe use an in-memory data-store to see how many requests in the last 10 seconds for that…
user290257
12
votes
1 answer

Caching authenticated requests for all users

I am working on a web app that must deal with very large impulses of simultaneous users, who need to be authorized, to request identical content. In its current state, it's totally crippling to even a 32-core AWS instance. (Note that we're using…
iamyojimbo
  • 223
  • 2
  • 6
9
votes
2 answers

Microservices & Canonical model

When I was reading about microservices on this site, I came across the below statement. What is meant by a canonical schema? Isn't it same as domain model? The Microservices Architecture pattern also rejects other parts of SOA, such as the…
Punter Vicky
  • 875
  • 4
  • 11
  • 19
8
votes
1 answer

Bottlenecks, nginx as a load balancer

Why nginx can keep itself from being a bottleneck when serving as a load balancer. If it becomes the single point bottleneck in some conditions, then is there solution except hardware load balancer?
upton
  • 673
  • 1
  • 7
  • 12
4
votes
1 answer

Why should we not use port 80 during development?

A colleague of mine recently pushed a change to the development config for our nginx. He changed the port from 8080 to 80. It's a rather lazy fix for a development-only issue. I reviewed the change and challenged it, calling it not idiomatic for…
Antony Woods
  • 353
  • 1
  • 3
  • 10
4
votes
1 answer

Understanding architecture of NGINX

According to this article, nginx has a master process and a number of worker processes. I'm trying to understand how a request is handled by the nginx worker processes. nginx uses an event driven architecture with multiple listen sockets and…
Eric Conner
  • 161
  • 4
4
votes
1 answer

Advice needed on approach to log raw request/response body from APIs

I need some advice on an approach to log raw request/response data from a few webapps, for all operations and hits on all APIS accessed via HTTP methods (mostly HTTP POSTs), that I have hosted. Objective: capture raw response body at the end of…
ksvrgh
  • 41
  • 4
3
votes
1 answer

Request Caching for Symfony 3 application with > 1 million combination of query parameters

We have a REST Webservice build with Symfony3 and PHP7. The application is served via Nginx and PHP-FPM. The Webservice returns a list of products. Products inside the list are filtered by attributes. The result would be the list with a subset of…
Andi
  • 133
  • 3
2
votes
1 answer

Why do we need nginx server on top of linux server?

Recently, I tried to deploy a web project to a virtual machine. I used the Ubuntu server as my OS, but while following along some tutorials I came to the fact which was very confusing for the beginner like me. I had to install the Nginx server on…
Aziz
  • 123
  • 3
2
votes
2 answers

creating nodejs apps in php/mysql framework with later on full step by step migration to nodejs in mind

I'm looking for the most efficient path to convert over time my own made php framework for nodejs and I believe that nodejs experts and specific developers who had their years working with apache/php/mysql will be able to give objective answers…
mikakun
  • 123
  • 4
2
votes
1 answer

Cache invalidation on multiple servers

I have 6 web servers which are giving me problems due to cache inconsistency. I am thinking of building a cache invalidation service such that there is a topic on which all the servers can publish a message to invalidate an object. I am considering…
tanvi
  • 123
  • 1
  • 5
1
vote
1 answer

Design help for web application that will run as separate instances with different content

I've built an RSVP web application with a React front end, Node.js backend, NGINX webserver, SQL database and hosted on a DigitalOcean Droplet with Ubuntu. The issue is, every time I want to launch the application with different content (i.e.…
Sal
  • 121
  • 4
1
vote
2 answers

Understanding the importance of Gunicorn and Nginx for Django web development

I'm entirely uninitiated to the world of web development, and only have a tentative grasp on Django and web development through the test server it works through. From the guide I'm reading, the author turns to using Nginx once he starts working on…
genjong
  • 113
  • 4
1
vote
0 answers

NGINX in between load balance and Apache?

I have recently joined the company where I see below stack to handle the http request CDN -> LVS(Load balancer) -> NGINX -> Apache My question is about using advantage of NGINX b/w Load balancer and Apache. Folks who took this decision left and…
user3222249
  • 457
  • 7
  • 14
1
vote
1 answer

Is this Big Data architecture good enough to handle many requests per second?

I want to ask for a review of my big data app plan. I haven’t much experience in that field, so every single piece of advice would be appreciated. Here is a link to a diagram of the architecture: My architecture overview Our app is webanalytics app.…
Alan Mroczek
  • 137
  • 4
1
2