4 ms·
If you have 100 services in your org, I don't have to have 100 running at the same time in your local dev machine. I only run the 5 I need for the feature I'm w
by recroad 2y ago
If you have 100 services in your org, I don't have to have 100 running at the same time in your local dev machine. I only run the 5 I need for the feature I'm working on.
- Daishiman 2y agoI've been on this path and as soon as you work on a couple of concurrent branches you end up having 20 containers in your machine and setting these up to run successfully ends up being its own special PITA.
- layer8 2y agoWhat exactly are the problems created by having a larger number of containers? Since you’re mentioning branches, these presumably don’t have to all run concurrently, i.e, you’re not talking about resource limitations.
- Daishiman 2y agoLarge features can require changing protocols or altering schemas in multiple services. Different workflows can require different services, etc. Keep track of different service versions in a couple branchs (not unusual IMO) and it just becomes messy.
- layer8 2y agoWhat does this have to do with running locally vs. on a dev server? You have to properly manage versions in any case.
- adamdecaf 2y agoWe have 100 Go services (with redpanda) and a few databases in docker-compose on dev laptops. It works well when and we buy the biggest memory MacBooks available. https://moov.io/blog/education/moovs-approach-to-setup-and-testing/ https://moov.io/blog/education/moovs-approach-to-setup-and-t...
- JasonSage 2y agoYour success with this strategy correlates more strongly with ‘Go’ than ‘100 services’ so it’s more anecdotal than generally-acceptable that you can run 100 services locally without issues. Of course you can. Buying the biggest MacBook available as a baseline criteria for being able to run a stack locally with Docker Compose does not exactly inspire confidence. At my last company we switched our dev environment from Docker Compose to Nix on those same MacBooks and CPU usage when from 300% to <10% overnight.
- ikety 2y agoHave any details on how you've implemented Nix? For my personal projects I use nix without docker and the results are great. However I was always fearful that nix alone wouldn't quite scale as well as nix + docker for complicated environments. I've used the FROM SCRATCH strat with nix: https://mitchellh.com/writing/nix-with-dockerfiles https://mitchellh.com/writing/nix-with-dockerfiles Is that how you implemented it?
- adamdecaf 2y agoBuying the biggest Mac’s also lets developers run an electron app or three (Slack, IDE, Spotify, browser, etc) while running the docker-compose stack.
- JasonSage 2y agoYou're right. My coworkers remarked that they could run Slack and do screensharing while running the apps locally when we removed docker-compose.
- stealthybox 2y agoThat's a huge win -- has your team written about or spoke on this anywhere?
- JasonSage 2y agoNo but I'd be happy to (I maintained the docker-compose stack, our CLI, and did the transition to Nix).