Skip to content

GraphQL server in Rust example for learning purposes

Notifications You must be signed in to change notification settings

Softsapiens/graphql-song

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Song

badge

Abstract

This is a wip Rust project for GraphQL learning.

Tech-Stack

The project used technologies/principal libs are following:

Local play

Play Elasticsearch locally as follows:

docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.6.1

Play the server via:

cargo run

Request could be made either by using some external tool like insomnia with the provided requests Or by using the internal included GraphIQL.

Load Testing / Benchmarking

Install artillery.io as a benchmark cli tool.

Post request

The test is here.

artillery run ./performance/graphql-song-load.yml

See some results in a HP-Zbook G4 laptop, requesting one Human object using 500 reqs/sec during 10 seconds:

All virtual users finished
Summary report @ 17:19:57(+0200) 2020-05-14
  Scenarios launched:  5000
  Scenarios completed: 5000
  Requests completed:  5000
  Mean response/sec: 474.83
  Response time (msec):
    min: 1.3
    max: 49.6
    median: 2.3
    p95: 6.9
    p99: 9.3
  Scenario counts:
    0: 5000 (100%)
  Codes:
    200: 5000

My Review

Read here my own state-of-art of GraphQL.

About

GraphQL server in Rust example for learning purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages