User Avatar

Cora Iberkleid 🚢

🍃Spring

2y ago

Developer Advocate at Tanzu by Broadcom focused on Kubernetes and Spring related technologies.

My First "Aha!" Moment With Spring
Cora Iberkleid 🚢

In 2010, I was assigned the task of streamlining the transfer and routing of quality control data coming from various manufacturing plants for a large electronics vendor. I was given free reign on the implementation and I jumped at the opportunity to bypass heavyweight application servers in favor of simple standard Java processes. I had a ball writing a program that would later enable me to fully appreciate the brilliance of Spring Boot. But that's a story for another day. Today's story is brought to you by Spring Batch.

What's This Spring Thing

During the course of the project, a wise soul suggested we evaluate Spring Batch for a particular component. I was new to Spring at the time and very quickly found myself captivated by the Spring Batch Documentation, building a mental model and a whole new vocabulary for batch processing. Jobs that consisted of Steps that processed Items. ItemReaders and ItemWriters for specific sources and destinations, be they files, databases, or queues. Optimization strategies using multi-threading, parallel processing and/or handling Chunks of lines at a time.

In short, the first thing I learned from Spring had nothing to do with Spring or with Java. It was simply best practices for general batch processing and a common vocabulary that I could use to communicate with my team and our stakeholders. This was gold.

Naturally, the words and concepts and strategies mapped to objects and APIs and configuration parameters in Spring Batch, but the most impactful takeaway for me was that Spring was a definition and a codification of best practices.

Spring IS Best Practices

If you want to know what the best practices are for any number of use cases—batch processing, stream processing, security, system integration, containerization, and more—Spring is not just your practical solution. It is your guide and teacher, and it will help you establish a common language, mental model, and understanding across your organization.