Microservices: The Matrix and The Architect

Maybe one of the most infamous and crucial characters of the movie series which made geek = cool (thank you Cohen brothers!) was “The Architect”.

Everything happening in that virtual world was by design and reflected a structure that was designed to satisfy the needs of all (well…) of its “forceful” – some more than others – hosts, thus infamous.

But even the infamous Architect understood that its survival depended on how happy he can make his hosts guarantee its own survival – I accept this isn’t the best metaphor but fits nicely in the 7 pillars:

Vision, Empathy, Collaboration; Adaptability; Autonomy; Governance.

Microservices implementation requires a lot of re-thinking; re-engineering; re-code etc…

It’s not a single person's role, but an organisational shift with mentorship, sponsorship and vision from above.

The Architect or even better the Architect Board are working with the business and the teams or squads to ensure the transition is done successfully.

Going from SOA or Monolith architecture to a Microservice Architecture will mean huge changes and challenges.

Your approach is key, gradual change can be made and implemented which will benefit and ensure its gradual success.

First things first, the sound sense is to identify 3 main areas, 1) Strategic Goals 2) Principles and 3) Practices.

Strategic Goals are aligned with the business outcomes and needs, it’s non-technical and influenced by the company heading and values to the high-level goals.

This will be naturally influenced by your organisation's departments and divisions.

Principles aka Rules are influenced by the identified and conceptualised goals.

Same good Principles are size matters, “Fit a Poster”; “Fits in my Head” means small and easy to remember with a reduced number, maybe 12 like recommend by Agile to ensure they don’t overlap or repeat themselves.

Golden rule very much like in Agile Methodologies, should reflect the kind of culture you want and aligns with your goals, make sure people first over-processed or tools, rule of thumb don’t push it or you doing it wrong.

Let's talk about Practices, which here it’s also influenced by the above and the main objective is to support the principles you have established, ex: if you are using containers then use best practices, agree to use RestAPIs for all communications; the lines of code MAX for a service; sizes of teams; etc.

As an Architect your main functions are, to build the team and help coach people to take ownership, ensure the vision and strategic goals are being executed, and teach and coach how to do it as opposed to doing it yourself which ties in nicely with ownership.

A good practice is to also do a bit of coding with the teams as opposed to just doing meetings.

This will ensure you are spending time with the teams and aware of the signs of progress but also verify how well the principles and practices are practical and helping (or not) your teams allowing you to further change for the good of everyone.

There will be some trade-offs that you have to be aware of, with such a distributed architecture monitoring is a challenge to pinpoint issues and performance bottlenecks, this requires different skills and solutions since alerts can be an effect but not the cause build Continuous Improvement into your monitoring systems.

Interfaces are a great idea to save time but can create unwanted dependencies un-welcomed when you are building services that you want to decouple so control that integration and look for the tradeoffs.

Technical debt will happen and sometimes a team owning a service can find itself without the knowledge to handle the service when team members shift so watch out for this with a log or other preferred model.

A possible solution is to uniform the stack and create your own development on top of that stack, great if you are open sourcing your team's work which ties in nicely with excellence because it’s now public too.

Governance is crucial (yes you have to) to keep documentation in a useful state and create a service template to ensure you make everyone's life easier, has with everything this is important and relevant to what everyone believes to be the best principles.

A key point to mention, is with many things and Governance especially it’s good to have your Architecture Board working with you, the sum of knowledge is wiser than one.

With the board we can better understand Priorities; Direction; Needs (business/teams/skills); Conditions and Options which allow better decision making, a more cohesive performance monitoring of the teams' work and business success and progress especially if we are talking of large change etc.

I want to end with one note which is crucial and sometimes put as secondary from my experience.

Where there are trade-offs there are limits.

One such which is pivotal to your success is the happiness of your teams, don’t lose sight of why you are doing this transformation and the business is nothing more than the reflection of an organisation and the people who make that same organisation, talent is hard to find, attract and maintain if you don’t have a clear vision for it and you don’t want to end up with a Ferrari without parts or mechanics to keep it FAST!!!

Share your thoughts with us in the comments and feel free to visit Boldlink.io for articles like this and more.


Only registered users can post comments. Please, login or signup.

Start blogging about your favorite technologies and get more readers

Join other developers and claim your FAUN account now!

Avatar

BoldLink Sig

AWS DevOps Consultancy, Boldlink

@boldlink
At BOLDLink, we help you get your software to the AWS cloud and quickly launch your solution. Proficient at: ECS/EKS; Terraform; AWS Cloudformation; Python/Java among other AWS solutions and seervices
Stats
165

Influence

14k

Total Hits

35

Posts