zlacker

[parent] [thread] 3 comments
1. vb-844+(OP)[view] [source] 2023-09-25 14:37:18
> If you're on a cloud provider, I'd say just use their offering. For small/medium amounts of messages (single digit millions a day) the cost will be trivial.

It's a good compromise but not suitable for every use case.

The thing I really don't like is that you need to be connected to the cloud even for local development and test.

replies(3): >>afandi+EP >>bblomm+qt1 >>nijave+jj2
2. afandi+EP[view] [source] 2023-09-25 17:42:38
>>vb-844+(OP)
You don’t. SQS works fine in Localstack.
3. bblomm+qt1[view] [source] 2023-09-25 20:32:27
>>vb-844+(OP)
In addition to Localstack, Moto can help speedup the dev/test cycle as well.

If you're architecture is on AWS, you're most likely using either one of those solutions.

4. nijave+jj2[view] [source] 2023-09-26 02:06:31
>>vb-844+(OP)
AWS SDK can stub responses. In general, I usually recommend creating local/in memory implementations of infrastructure so you don't end up running a gigantic stack locally. You can write tests against the real integration that selectively run against a real environment and write contract tests that cover the real implementation and your local stubs (or maybe even interfaces is strongly typed languages are sufficient).

Some languages/frameworks have this built in (a lot of ORMs do this out of the box). A lot of frameworks also have facilities for conditionally wiring in different implementations based on runtime config.

[go to top]