Load Test the Admin Dashboard
Our admin dashboard seems like it will work well for us, but we’ve only tested it with two shoppers connected. We need to test it with many more connected clients in order to know if it will work properly when a launch happens. This would be an impossible task to do ourselves. However, we can use Elixir to help us out.
A load test is a type of test where you send many connections, messages, or whatever else you want to test to your back-end server. You can write these tests in any language, but we’ll use Elixir for our tests. The basic flow of our load test will be to open many ProductSocket connections and then join a unique CartChannel. We’ll leverage Elixir’s process model to spawn many instances of a Shopper ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access