| ▲ | reactordev 13 hours ago | |||||||||||||||||||||||||||||||
Why aren’t you mocking your dependencies? I should be able to run a microservice without 3rd party and it still work. If it doesn’t, it’s a distributed monolith. For databases, if you can’t see a connection string in env vars, use sqlite://:memory and make a test db like you do for unit testing. For redis, provide a mock impl that gets/sets keys in a hash table or dictionary. Stop bringing your whole house to the camp site. | ||||||||||||||||||||||||||||||||
| ▲ | esafak 12 hours ago | parent [-] | |||||||||||||||||||||||||||||||
Because the real thing is higher fidelity, but it can expensive to boot up many times. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||