Skip to content

Instantly share code, notes, and snippets.

View codysmith287's full-sized avatar

Cody Smith codysmith287

  • Bitwise Industries
  • Fresno
View GitHub Profile
@codysmith287
codysmith287 / get.yml
Last active May 20, 2020 22:09
Get Requests Stress Test for Proxy Server
config:
target: 'http://localhost:3000'
http:
pool: 20
phases:
- duration: 10
arrivalRate: 1
rampTo: 10
name: "1 to 10 request per second"
- duration: 30
@codysmith287
codysmith287 / get.yml
Created April 29, 2019 04:07
Service RPS (development)
config:
target: 'http://localhost:3003'
http:
pool: 20
phases:
- duration: 10
arrivalRate: 1
rampTo: 10
name: "1 to 10 request per second"
- duration: 30

Postgres

Query (psql)

SELECT * FROM album_comments WHERE id = 9999999;

Result

   albumId   |     username     |                          comment                                |                           profileimg                              |   id 
-------------+------------------+-----------------------------------------------------------------+-------------------------------------------------------------------+-----------
  5130103    | Franco_Corkery85 | Vero voluptas eligendi minus labore dolores perferendis impedit.| https://s3.amazonaws.com/uifaces/faces/twitter/rtyukmaev/128.jpg  | 9999999     
GET request end point - "en-us/ua-curry-6-basketball-shoes/pid3020612-405"
reponse body:
[
{
"productId":"pid3020612",
"color":"Petrol Blue / Mod Gray",
"colorNumber":405,
"right":"http://lorempixel.com/640/480/animals",