Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Phoenix.Ecto.SQL.Sandbox module for testing #22

Open
btkostner opened this issue Aug 3, 2023 · 0 comments · May be fixed by #23
Open

Extend Phoenix.Ecto.SQL.Sandbox module for testing #22

btkostner opened this issue Aug 3, 2023 · 0 comments · May be fixed by #23

Comments

@btkostner
Copy link
Owner

The Phoenix.Ecto.SQL.Sandbox module is amazing for testing applications when you are utilizing the database. However, this kinda falls apart when you start integrating messaging systems like rabbitmq. It also requires sending a request to start the pool which can be hard to do in distributed system.

Things we can do

  1. Document and make the module easier to use.
  2. Possibly a -test tag docker image to replicate use in distributed system CI systems
  3. Use similar logic for message bus. Sending and receiving rabbitmq messages should be done in the same db pid
  4. Investigate ability to not require sending a POST request to initiate the request. This will help in distributed systems
@btkostner btkostner linked a pull request Aug 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant