Skip to content

Commit

Permalink
elaborate on load-test and talk about what's up next
Browse files Browse the repository at this point in the history
copied srid's suggestion for load-test from his comment: #28 (comment)
  • Loading branch information
shivaraj-bh committed Mar 4, 2024
1 parent 93bf0ed commit b0a408f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions en/replacing-docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,18 @@ NY uses [Redis](https://redis.io/) as a cache and clustered version of it as a K

By not depending on docker anymore, we can now run the entire NY backend with one command and its all defined in a [single place](https://github.com/nammayatri/nammayatri/blob/ccab8da607cfd8d4e9f7d28b55b83e22eec1af9b/Backend/nix/services/nammayatri.nix).

That is not all, we can also reuse this to do much more, like defining [loadtest](https://github.com/nammayatri/nammayatri/blob/ccab8da607cfd8d4e9f7d28b55b83e22eec1af9b/Backend/load-test/default.nix) config and run it in CI/local, again, with one command.
That is not all, we can also share NY backend module to do much more, like defining [load-test](https://github.com/nammayatri/nammayatri/blob/ccab8da607cfd8d4e9f7d28b55b83e22eec1af9b/Backend/load-test/default.nix) config and run it in CI/local, again, with one command. Here, we take the module to run entire NY stack, and then extend it to add a bunch of load-test processes, before bringing the whole thing to an end (as the load-test ends).

This is how running them looks like:

```sh
# Run loadtest
# Run load-test
nix run github:nammayatri/nammayatri#load-test-dev

# Run the entire backend
nix run github:nammayatri/nammayatri#run-mobility-stack-nix
```

## Up next

Sharing services-flake modules deserves a separate post, so we will talk more about this in the next post.

0 comments on commit b0a408f

Please sign in to comment.