Skip to content

Instantly share code, notes, and snippets.

View xApnea's full-sized avatar

John Bruno xApnea

  • Exzeo
  • Tampa, FL
View GitHub Profile

Proxy Stress Tests

New Relic Dashboard: (not 500, 250 rps)

Dashboard

Proxy stress loader results @250 RPS:

Script

Proxy stress loader summary:

Dashboard

Proxy Stress Tests

New Relic Dashboard:

Dashboard

Proxy stress test script:

Script

Proxy stress test results:

Dashboard

@xApnea
xApnea / stressTestService.md
Last active July 20, 2020 22:20
Stress Test Service

Stress Tests

New Relic Dashboard:

Dashboard

Stress test script:

Script

Stress test results:

Dashboard

@xApnea
xApnea / queries.md
Last active July 16, 2020 04:14
SDC queries

Database Queries

Cassandra Query:

  • select * from updates where campaignid = 10000000;
  • With 10M+ record Update Query

Postgres Query:

  • SELECT * FROM updates where "updateID" = 100;
  • With 10M+ record
const faker = require('faker');
const db = require('./index.js');
const Product = require('./model.js');
const numOfDataPoints = 10;
var generateEntry = function(numOfVariations) {
var randomTitle = faker.commerce.productName(); //Fender Stratocaster
var randomDescription = faker.lorem.paragraph();
const express = require('express');
const app = express();
const Product = require('../db/model.js')
const port = 3000;
app.use(express.static('dist'));
app.get('/api/products', (req, res) => {
const id = req.query.id;
Product.findById(id)