3 ms·
I'm the lead dev for our company and I chose as phase 1 for our implementation Nomad for orchestration, a bunch of "micro-apps" (single purpose executables), an
by scarface74 9y ago
I'm the lead dev for our company and I chose as phase 1 for our implementation Nomad for orchestration, a bunch of "micro-apps" (single purpose executables), and Consul for configuration and service discovery. I chose that combination for ease of use and flexibility - Nomad works with everything raw executables and containers.
Of course later on the consultants came along later and scoffed at the simplicity of our process - our deployment process is basically one step in our continuous delivery pipeline - copy the bin/release directory to the destination folder.
I tried to get them to articulate a business case for us to use containers. They couldn't come up with one.
Then my manager, someone I really respect for his technical acumen finally gave me one. If we go to containers, we don't have to provision servers on AWS. We can use AWS Fargate. Lambda isn't an option we have long running processes that make more sense as apps.
I wanted to do Docker anyway eventually just to add a bullet point on my resume and I could have as the dev lead but it felt unethical to make a choice that wasn't best for the business. Now I think it's the right way to go.
- tty7 9y agoSounds like your consultants were not sold on docker/containers as you already supported them. They wanted to lock you into a managed service so that you keep using them. If they really cared about containers they would have helped you continue using nomad/consul as thats a fine combination
- scarface74 9y agoI'm not opposed to a managed service and yes Consul+Nomad is great. But I like the idea of not having to manage VMs. We will probably move to a hybrid approach.
- randyrand 9y agoisn't debugging a bunch of small executables annoying? How do you debug/trace the flow of execution between them easily? You can't even get a good stack trace inter-executable, can you?
- scarface74 9y agoOur architecture is a hub and spoke. Each executable maps data from an external source to a common domain model stored in Mongo we use a central api as the hub that guarantees a consistent write model and validates the model based on MSs data annotation attributes. We create a corellation Id that tracks it between input and output (another executable). We use Serilog for structured logging. The hub Also publishes an event when the model changes.
- sjellis 9y ago"Then my manager, someone I really respect for his technical acumen finally gave me one. If we go to containers, we don't have to provision servers on AWS. We can use AWS Fargate. Lambda isn't an option we have long running processes that make more sense as apps." Yeah, Fargate may be an inflection point: a lot of discussion of Docker ignores the fact that you need orchestration to make it work in prod, and orchestration is overhead.