Gokhan Tuna bio photo

Gokhan Tuna

Telecom professional with more than 15 years of experience on charging, billing and location based solutions who likes to read and spend time with his Sunshine.

Email Twitter Facebook LinkedIn Github Stackoverflow

Greetings! Recently I required to maintain huge (not that huge, approximately 500 MBs each) csv files; like reading them and doing something with them and creating some other files.

That’s what we call batch processing. To some extend, I always try to stay away from reinventing the wheel That’s why I searched for some alternatives and spring batch was one of them.

I gave it a shot and for the next few weeks, I will try to share my practice here. I last used spring like many years ago, where annotations were newly introuced (I think it was 2009 or 2010) and we were dealing with many xml files to configure our application. Even then, I liked the idea of dependency injection.

Spring

Before starting; let’s first read from Sam Atkinson why he hates spring? And then, let’s see what has Phil Webb said about how not to hate spring?

Spring has extensive guides for each of their projects in here and you can always use initializr to create a maven project easily (Switch to full version)

There is also a nice guide for batch processing here and an introduction here, so i will try to share the things which are not there for the next few weeks; such as multiple readers, writers and processors and additionally some performance figures.

Then, I will use a simple template engine to create some html pages which uses google maps api and there will be JSON too.

How come I feel like campaign advertising like politicians?

Stay tuned!