# Load testing advice

**URL:** <https://forum.elixirforum.com/t/load-testing-advice/45439>\
**Category:** Questions\
**Tags:** phoenix, deployment, testing, loadtesting\
**Created:** [January 23, 2022, 12:34am UTC](https://forum.elixirforum.com/t/load-testing-advice/45439 "2022-01-23T00:34:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![josefrichter](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/josefrichter/32/19529_2.png) [@josefrichter](https://forum.elixirforum.com/u/josefrichter)\
**Post date:** [January 24, 2022, 4:33pm UTC](https://forum.elixirforum.com/t/load-testing-advice/45439/7 "2022-01-24T16:33:08Z")

</div>

Yeah exactly. I cast the enrolment to class genserver. The genserver adds it to its state and broadcasts it, so that all liveviews can pick it up - that way you know genserver got it, coz it shows up in your liveview, but it’s completely async.

And then genserver writes it to postgres in bulk, and if that’s successful, there’s another broadcast which again updates the liveview with green checkmarks (meaning it’s received AND persisted. sort of inspired by WhatsApp double checkmarks here 🙂 ).

My _guess_ is these two steps are avoiding two biggest potential bottlenecks. But I now need to test my hypothesis that these were the two biggest potential bottlenecks 🙂

---

_[View the full topic](https://forum.elixirforum.com/t/load-testing-advice/45439)._
