2 Answers
- Newest
- Most votes
- Most comments
0
If it were me (and bear in mind that there are a lot of unanswered questions here) I would be doing the following:
- Use a CloudFront distribution per customer.
- If possible, do the redirects/rewrites in CloudFront using Lambda@Edge or CloudFront functions.
- Don't run t2 instance types. Instead, create an ALB in each region (maybe more than one depending on load) and have a fleet of instances that can all deal with every customer. Use a more appropriate (higher performance) instance type. But less will be required and they can run "hot" rather than having a bunch of smaller instances that are probably running idle or maybe even being overloaded.
- (3) will resolve the EIP billing problem.
- Make sure (3) uses auto-scaling.
- Use CloudWatch Metrics and Logs and Log Insights to try and determine where problems are occuring.
0
Agree with Brettski, however you still have other options as always.
As its NGINX, you can put all the same rules on 1 server NGINX.
- Create an ALB, with at least 2 EC2s OR ECS Containers running NGINX in a target group.
- Point all URLS to the ALB
- The NGINX Hosts still will perform URL rewrites etc.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 5 months ago
How do you identify customers? Do they login? Are you getting the requests over VPN?