Microservices, DevOps, and the Cost of Change?
Join the DZone community and get the full member experience.Join For Free
as developers, we all love shiny new things. new technologies (docker, kubernetes), new languages (golang, nodejs), new hyped conversation starters (microservices, devops, cloud). and everyone seems to have an opinion about why you should do this architecture, or why you should use that language. at the end of the day, your employer is expecting you to deliver using a means to an end, but what is that end?
believe it or not, businesses are around to make money. yah, yah, they provide services, products, etc that we all want, otherwise they wouldn’t make any money. but really, it’s all about the money. and when they are making money, that’s not good enough. they need to make more money. and more and more companies are coming around to the realization that technology is a significant differentiator. for example, you can go to disney world/land and they know who you are, what attractions you are interested in, and when you are ready to eat lunch . sounds creepy? well, since they know this, they can provide you maps of the park with a customized trail to follow to hit all of your favorite rides in an order that’s optimized for both location/distance and wait times. with the information they have, they can also re-route you or alert you to popular rides that may have short wait times. or when you go for lunch, you can preorder on your phone/app and go sit down and they will greet you by name and find you when your food is ready. that’s just the tip of the ice berg.
to be able to provide these kinds of services, and come up with new innovative ways to provide better customer service or better products, companies must rely on technology going forward. or, their competition (be it large existing competitors, or competitors they don’t even know about yet) will smoke them. to accommodate this relatively newer embrace of technology as a differentiator, businesses have to be agile . but okay, mr posta, you say. i’ve been hearing that for the last 10 years about “agile”. wtf is different?
the difference is the technical and cultural solutions for this agility have been popping up organically and more specifically in the form of open collaboration, community and opensource. it’s not being driven (at least of yet…. although it’s fast becoming a “perceived goldmine” for vendors) by stuffy, know-it-all, committees coming up with egregious specs that they can then hand down to us from the castle of the all knowing.
but why should you care?
well, your employer cares. to be able to achieve this “agility” you don’t need a special (and very expensive) soa suite. you need to adopt a culture that embraces reducing the cost of change. change should be constant. your management structure, teams, developers, architects, dbas, operations, build and release, security, and business people should be all on the same page with this effort. otherwise, you end up loosening up “change” in one pocket (sorry) and tightening the noose in others.
microservices and devops are really more about culture and reducing the cost of change than any particular technology. and if you stop and take a look around your current company/organizational structure, and really think about “what are the impediments to change”.. you’ll find them all over.
are you not writing unit tests? then you’re slowing yourself down. you cannot make changes to your code base without a hint of confidence that the changes you make don’t break existing functionality, or even the functionality you’re writing.
are you not doing continuous integration? then you’re slowing yourself (and sinking deadlines) by not being able to communicate changes in your code base across your team. and when it comes time to integrate/merge/rebase with others on your team, you have a black hole (literally… how do you predict how long it will take to rectify these conflicts? you cannot..) in terms of time. so by slowing yourself, you incur a cost.
are you creating all kinds of shared dependencies, custom libraries, shared domain logic, and home-grown frameworks? then you might as well hang up the business right now. i’ve already written about the cost of code reuse abuse .
are you hand crafting servers for deployment? then have a look at some thoughts on that and how by definition this introduces inefficiencies and introduces human errors. huge cost for change.
are you deploying into application servers without treating them as atomic upgrades ? see above about introducing human errors, but also magnify that by introducing technology errors.
do you have shared infrastructure? does it cost more to provision vms that physical boxes? does it take weeks to provision vms? do you not script your environments? have repeatable automation for creating an environment from scratch? have upgrade/rollback automation (for both applications, databases, etc)? then you’re incuring a huge amount of cost to the business. you cannot be agile and support change with an environment like that.
at the end of the day, devops, microservices, being “agile”, etc, are about creating a culture that focuses on reducing the cost of change. be wary of the vendors trying to capitalize on this, be wary of your organizations embracing this half-assed, and try to keep perspective and the goals in mind regardless of your role.
Published at DZone with permission of Christian Posta, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.