<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rita Gitamo</title>
    <description>The latest articles on DEV Community by Rita Gitamo (@rita_gitamo_e28e9b47960a8).</description>
    <link>https://dev.to/rita_gitamo_e28e9b47960a8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3835383%2F8a0159f2-6617-4476-9adf-11c455e347a9.png</url>
      <title>DEV Community: Rita Gitamo</title>
      <link>https://dev.to/rita_gitamo_e28e9b47960a8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rita_gitamo_e28e9b47960a8"/>
    <language>en</language>
    <item>
      <title>Deploying Spring PetClinic Microservices Locally with Docker Compose</title>
      <dc:creator>Rita Gitamo</dc:creator>
      <pubDate>Fri, 12 Jun 2026 18:32:49 +0000</pubDate>
      <link>https://dev.to/rita_gitamo_e28e9b47960a8/deploying-spring-petclinic-microservices-locally-with-docker-compose-5b2p</link>
      <guid>https://dev.to/rita_gitamo_e28e9b47960a8/deploying-spring-petclinic-microservices-locally-with-docker-compose-5b2p</guid>
      <description>&lt;p&gt;There is something different about deploying an application yourself, from scratch, on your own machine. Our team had already deployed Spring PetClinic on AWS EKS as part of our DMI capstone project. But when I sat down to run the same application locally using Docker Compose, I learned things the cloud deployment never taught me.&lt;br&gt;
&lt;strong&gt;What Is Spring PetClinic?&lt;/strong&gt;&lt;br&gt;
Spring PetClinic is a veterinary clinic management application built as 8 independent Spring Boot microservices. It covers everything from managing pet owners and their animals to scheduling vet visits and browsing veterinarian profiles. What makes it interesting as a learning project is not what it does, but how it is structured — 8 services that each own a piece of the system, all needing to work together seamlessly.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsy2o4f00qvhtntne6712.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsy2o4f00qvhtntne6712.png" alt=" "&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
Before running anything, make sure you have the following installed:&lt;/p&gt;

&lt;p&gt;Docker&lt;br&gt;
Git&lt;br&gt;
A terminal — I used Ubuntu on WSL2&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Getting Started&lt;/strong&gt;&lt;br&gt;
bash&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/gitamoo/spring-petclinic-microservices.git
&lt;span class="nb"&gt;cd &lt;/span&gt;spring-petclinic-microservices
docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That single command spins up the entire stack:&lt;/p&gt;

&lt;p&gt;Config Server and Eureka Discovery Server — the foundation&lt;br&gt;
API Gateway, Customers, Visits, Vets, and GenAI services — the application layer&lt;br&gt;
Spring Boot Admin, Prometheus, Grafana, and Zipkin — the full observability stack&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Startup Order&lt;/strong&gt;&lt;br&gt;
The first thing that stood out was watching the startup sequence play out. Config Server boots first and has to reach a healthy state before anything else moves. Discovery Server follows. Only once both are healthy do the remaining services start.&lt;br&gt;
This is enforced in docker-compose.yml using depends_on with health checks. It is not just a convention — it is a hard requirement. Every service fetches its configuration from Config Server the moment it starts. Without it, they fail immediately. Then each service registers itself in Eureka so other services can find it by name. Without Discovery Server, the whole routing layer breaks.&lt;br&gt;
Watching this happen in real time made the concept of distributed service dependencies feel very concrete.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Zipkin Problem&lt;/strong&gt;&lt;br&gt;
Once everything was running I opened Zipkin at &lt;a href="http://localhost:9411" rel="noopener noreferrer"&gt;http://localhost:9411&lt;/a&gt;, ran a query, and got nothing. No traces, no errors — just an empty screen.&lt;br&gt;
The container was healthy. The UI loaded fine. But nothing was showing up.&lt;br&gt;
After investigating I found the root cause: the individual services had no configuration telling them where to send their trace data. Zipkin was running but completely isolated — none of the application services knew it existed.&lt;br&gt;
The fix was adding two environment variables to each service in docker-compose.yml:&lt;br&gt;
yamlenvironment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;MANAGEMENT_ZIPKIN_TRACING_ENDPOINT=http://tracing-server:9411/api/v2/spans&lt;/span&gt;
  &lt;span class="s"&gt;- MANAGEMENT_TRACING_SAMPLING_PROBABILITY=1.0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once I brought the stack back down and up again with those variables in place, the traces started flowing immediately. I could see requests moving through api-gateway → customers-service in real time.&lt;br&gt;
That experience taught me something I will carry into every deployment going forward: a container being healthy and a container being correctly wired up to the rest of the system are two completely different things. Health checks tell you the process is running. They do not tell you it is connected.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0fzl99tjtw8nfgy24q8q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0fzl99tjtw8nfgy24q8q.png" alt=" "&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Verifying Everything Works&lt;/strong&gt;&lt;br&gt;
Once the stack was up I verified each service:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Service                    URL
Spring PetClinic App       http://localhost:8080
Eureka Dashboard           http://localhost:8761
Spring Boot Admin          http://localhost:9090
Zipkin                     http://localhost:9411
Prometheus                 http://localhost:9091
Grafana                    http://localhost:3030
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Everything worked as expected. The only service that did not function fully was the GenAI chatbot, which requires a paid OpenAI API key. The service starts and registers with Eureka cleanly — it just cannot respond to AI requests without the key configured.&lt;br&gt;
&lt;strong&gt;Cleaning Up&lt;/strong&gt;&lt;br&gt;
bash&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose down
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This stops and removes all containers and the network, freeing up all ports and memory.&lt;br&gt;
&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;br&gt;
Running this application locally gave me a ground-level understanding of how microservices behave that the cloud deployment, with all its automation, had abstracted away. The startup order, the service wiring, the observability configuration — these are things you only truly understand when you have to get them right yourself.&lt;br&gt;
This deployment was part of the DMI DevOps Micro-Internship. If you want hands-on experience like this, DMI Cohort 3 starts 27 June 👇&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.google.com/forms/d/e/1FAIpQLSel7ai7nyb0P1qLW4vEyfB_nEsD4lUF1XG88vmAaFGBOb6hPA/viewform" rel="noopener noreferrer"&gt;https://docs.google.com/forms/d/e/1FAIpQLSel7ai7nyb0P1qLW4vEyfB_nEsD4lUF1XG88vmAaFGBOb6hPA/viewform&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Deploying Spring PetClinic Microservices on AWS EKS: A Team Story</title>
      <dc:creator>Rita Gitamo</dc:creator>
      <pubDate>Fri, 12 Jun 2026 18:18:16 +0000</pubDate>
      <link>https://dev.to/rita_gitamo_e28e9b47960a8/deploying-spring-petclinic-microservices-on-aws-eks-a-team-story-l0g</link>
      <guid>https://dev.to/rita_gitamo_e28e9b47960a8/deploying-spring-petclinic-microservices-on-aws-eks-a-team-story-l0g</guid>
      <description>&lt;p&gt;When our group of 11 was handed the brief for our DMI DevOps Micro-Internship capstone project, the goal was clear: take a real-world microservices application and deploy it end-to-end on AWS using production-grade tooling. No shortcuts, no simulated environments. The kind of setup you'd actually find in a professional engineering team.&lt;br&gt;
The application we worked with was Spring PetClinic — a veterinary clinic management system built as 8 independent Spring Boot microservices. On the surface it's a simple app. Under the hood it's a distributed system with service discovery, centralised configuration, an API gateway, a generative AI chatbot, and a full observability stack. It was the perfect candidate for what we were trying to learn.&lt;br&gt;
&lt;strong&gt;What We Built&lt;/strong&gt;&lt;br&gt;
The final architecture brought together a wide range of tools across every layer of the stack:&lt;/p&gt;

&lt;p&gt;Terraform to provision the AWS infrastructure — VPC, EKS cluster, RDS, ECR repositories, IAM roles, and the AWS Load Balancer Controller&lt;br&gt;
Docker and ECR to containerise all 8 services and store the images in a private registry&lt;br&gt;
Kubernetes to deploy and manage the application on EKS&lt;br&gt;
GitHub Actions for the CI/CD pipeline — automatically building, tagging, and pushing images on every code push&lt;br&gt;
ArgoCD for GitOps delivery — watching the infrastructure repository and syncing any changes to the cluster automatically&lt;br&gt;
AWS Secrets Manager and External Secrets Operator to manage credentials securely without storing anything sensitive in the repository&lt;br&gt;
Prometheus, Grafana, and Zipkin for metrics collection, dashboards, and distributed tracing&lt;/p&gt;

&lt;p&gt;The team was organised around ownership. Each person or pair took a distinct layer and was fully responsible for it. That meant 11 people could work in parallel without stepping on each other.&lt;br&gt;
&lt;strong&gt;My Role&lt;/strong&gt;&lt;br&gt;
I was part of the infrastructure team, working alongside my teammate Bola Balogun. Our job was to lay the foundation that everyone else would build on.&lt;br&gt;
We worked with Terraform to provision everything the cluster needed on AWS. This included reviewing and validating the configuration files, making adjustments where needed, and running terraform plan and terraform apply to bring the resources to life. The infrastructure we provisioned covered the VPC and networking layer, the EKS cluster with its node groups, the IAM OIDC provider for service account permissions, and the AWS Load Balancer Controller for routing external traffic into the cluster.&lt;br&gt;
One decision that proved important was how we structured the Terraform project. ECR repositories were placed in a separate global layer, independent of the dev and prod environments. This meant that when the cluster was torn down at the end of the project to avoid unnecessary AWS charges, the container images were not lost with it. The repositories persisted, and a future rebuild of the cluster could reference them immediately.&lt;br&gt;
One of the trickier issues we ran into was with the IAM OIDC provider. On repeated terraform apply runs, Terraform would attempt to create a new OIDC provider even though one already existed in the account, causing failures. We resolved this by deleting the existing provider and allowing Terraform to own and manage it cleanly from that point forward.&lt;br&gt;
&lt;strong&gt;What Went Well&lt;/strong&gt;&lt;br&gt;
The separation of ownership worked really well. Because each person had a clearly defined scope, there was very little confusion about who was responsible for what. Decisions got made quickly and the project moved at a good pace.&lt;br&gt;
The GitOps workflow was also a highlight. Once ArgoCD was connected to the infrastructure repository, deployments became automatic. Merging a change to the manifests was all it took to trigger a rollout — no manual kubectl apply runs, no risk of someone deploying the wrong version.&lt;br&gt;
&lt;strong&gt;What I Would Do Differently&lt;/strong&gt;&lt;br&gt;
I would invest more time upfront in documenting the Terraform outputs and sharing them with the team earlier. The ECR registry URL, cluster name, and RDS endpoint are referenced by almost every other team member, and any delay in having those values available creates a bottleneck across multiple workstreams simultaneously.&lt;br&gt;
I would also set up a stricter branching and review process for the infrastructure repository. Infrastructure changes have a wider blast radius than application code — a misconfigured security group or a missing IAM permission can block the entire team. A mandatory review step before any terraform apply would add a useful safety net.&lt;br&gt;
&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;br&gt;
This project was part of the DMI DevOps Micro-Internship, a hands-on programme that puts you in a real team working on a real project. It is the kind of experience that changes how you think about software delivery — not just the tools, but the coordination, the communication, and the craft of building systems that other people depend on.&lt;br&gt;
DMI Cohort 3 starts 27 June 2026. If you want to build real DevOps skills alongside a team, applications are open here 👇&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.google.com/forms/d/e/1FAIpQLSel7ai7nyb0P1qLW4vEyfB_nEsD4lUF1XG88vmAaFGBOb6hPA/viewform" rel="noopener noreferrer"&gt;https://docs.google.com/forms/d/e/1FAIpQLSel7ai7nyb0P1qLW4vEyfB_nEsD4lUF1XG88vmAaFGBOb6hPA/viewform&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>kubernetes</category>
      <category>microservices</category>
      <category>springboot</category>
    </item>
  </channel>
</rss>
