This project was my personal attempt at creating a more efficient back-end system. At the time of inheriting the legacy code base, base line traffic metrics were at roughly 500 requests per second. Through much testing, I have effectively scaled the back-end system to handle a 400% increase in traffic at roughly 100ms to a single endpoint, given restrictions and other various constraints.
This project aimed to improve an existing back-end architecture, in an attempt to increase the amount traffic it can handle. To run locally:
- Install dependencies
- Inside of
dbhelpers/postgres/
open index.js and change
- user to your postgres user/password settings
- password to your postgres user/password settings
- host to "localhost"
- database to "sdc_pg"
- port to "5432"
- From within the root directory, run
node pgListingsSeed
- From within the root directory, run
npm run pgstart
- Test the local api with artillery.io
- Node 6.13.0
- etc
To test locally, I've used artillery.io
From within the root directory:
npm install -g webpack
npm install