Skip to content

rpp2204-sdc-caprese/reviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atelier | Ratings and Reviews Microservice

A redesign of a monolithic ratings and reviews microservice with an end goal to support load under large amounts of user traffic and stress. This service handles requests in gathering numerous product reviews, as well as gathering a product’s meta data, such as average rating, and the average rating for a product’s characteristics, like quality, fit or length. This service also allows user input, allowing them to add their own review to a product, as well as report or mark existing reviews as helpful.

Front End Repository

COMNHI

Goals

  • Throughput of 1000 RPS
  • < 1% Error Rate Under Load
  • Average Latency of < 2000ms

Tech Stack

  • JavaScript
  • PostgreSQL
  • Redis
  • Postman
  • K6
  • Loader.io
  • NewRelic
  • NGINX
  • AWS EC2

Initial Stress Test Metrics

GET '/reviews' Route

Screen Shot 2022-11-08 at 11 47 42 PM

  • 35ms Latency
  • 1000RPS Throughput
  • 0% Error Rate

GET '/metas' Route

Screen Shot 2022-11-08 at 11 45 43 PM

  • 1200ms Latency
  • 1000 RPS Throughput
  • 0% Error Rate

After Horizontally Scaling Across 3 Servers with Redis Caching

GET '/reviews' Route

Screen Shot 2022-11-15 at 11 57 52 PM

  • 24ms Latency
  • 3000 RPS Througput
  • 0.02% Error Rate

GET '/metas' Route

Screen Shot 2022-11-16 at 12 04 42 AM

  • 23ms Latency
  • 3000 RPS Throughput
  • 0.2% Error Rate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published