From Manual Deployments to an Automated Microservice Platform: A Startup’s Journey
This article chronicles a small team’s evolution from single‑repo manual deployments through service splitting, messaging middleware, SDK‑based calls, service discovery, Docker automation, and log handling, highlighting practical lessons and trade‑offs at each stage.
Technology itself is neutral; its value depends on the scenario.
The uread team started with a single backend system, using Git for collaboration and a simple shell script that performed git pull, killed the old process, and restarted the service.
Stage 1: Monolithic Application – Manual Deployment
Initially, deployment was entirely manual.
Stage 2: Service Splitting – Interaction Challenges
As features grew, the monolith became hard to understand and caused merge conflicts, prompting the team to consider microservices. New large features were split into independent projects, but the main issue became inter‑service communication, often requiring multiple services per feature and handling long‑running tasks via HTTP callbacks.
Stage 3: Message‑Queue Interaction
The team introduced RabbitMQ to replace HTTP calls, eliminating address‑change problems and easing scaling, but eventually abandoned it because the added complexity overwhelmed the small, inexperienced team.
Stage 4: SDK‑Based Interaction
Developers began providing an SDK for each microservice; callers only needed to import the SDK, and service changes could be handled by updating the SDK while keeping function signatures compatible.
Stage 5: Service Discovery System
Because each SDK still required hard‑coded addresses, the team built a simple discovery system that maps a service name to its real address at runtime.
Stage 6: Automated Deployment
Deployment automation became a priority. The team containerized services with Docker, wrote Dockerfiles, and used Docker Swarm to distribute containers across machines. Git hooks triggered scripts that automatically built and deployed new versions.
Stage 7: Application Logging
Logs inside containers across multiple servers were collected by capturing errors in a common handler and posting them to a notification bot, allowing immediate visibility of failing requests without the heavyweight ELK stack.
The next step is to implement elastic scaling, though the current workload does not yet require large‑scale expansion.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
