Welcome!

Microservices Expo Authors: Liz McMillan, Elizabeth White, Pat Romanski, Automic Blog, Mamoon Yunus

Related Topics: Microservices Expo, Java IoT, @CloudExpo

Microservices Expo: Article

How to Ensure the Quality of Your Microservices Architecture By @webcodepro | @CloudExpo #Cloud #Microservices

A microservices architecture is inherently complex and if not designed and coded correctly, serious problems can occur

How to Ensure the Quality of Your Microservices Architecture with Peer Code Reviews
by Janet Wagner

Over the past few years, a growing number of companies have made the move from a monolithic to microservices architecture.

The list of companies that have made the switch include: Netflix, Amazon, Twitter, and PayPal.

A microservices architecture consists of smaller services, each focusing on completing a specific task. Each of these small services, or microservices, can be developed in any language and each can communicate using protocols that are language neutral such as HTTP resource APIs.

A microservices architecture is inherently complex and if not designed and coded correctly, serious problems can occur.

One of the biggest challenges of switching to a microservices architecture is that teams often operate independently from each other.

Each team is responsible for building and deploying one or more microservices to production. Netflix for example, broke down its monolithic architecture into microservices when the number of platform engineers reached about 100. Today, Netflix has about 30+ engineering teams responsible for building and deploying approximately 500+ fine-grained services.

The greater number of engineering teams and microservices, the greater the chances that code errors and other issues will occur.

This is where peer code reviews come in.
One of the best ways to ensure the design and code quality of a microservices architecture is by conducting peer code reviews throughout the development process.

In 2013, Microsoft conducted a study to find out "the motivations, challenges, and outcomes of tool-based code reviews." The study looked at the many diverse teams at Microsoft and found that while the primary reason for conducting code reviews was finding defects, there were many other benefits to conducting peer code reviews.

These include:

  • Shared knowledge across teams: Peer code reviews allow developers to share knowledge, discuss alternative solutions, and improve coding skills which in turn helps teams produce clean, well-written code. Architectural problems and security issues can often be caught by conducting code reviews.
  • Mentorship: Peer code reviews can be used as a way for team leaders to mentor new members and help familiarize them with the project. New members can learn via peer code reviews different aspects of a project such as architecture design, coding conventions, tools available, APIs to use, and more.
  • Shared Ownership: Peer code reviews can help promote the concept "shared code ownership" in which team members work together often having overlapping coding responsibilities. The idea being that the entire team owns the code instead of individual developers owning portions of the code.

Peer code reviews can help enable awareness, transparency, and open communication for every member of every engineering team. This is especially important considering that there can be dozens of autonomous engineering teams involved in the development of a microservices architecture.

One of the keys to implementing peer code reviews is making sure you have the right tools to do it.

Using proper peer code review tools is very important for companies of all sizes, but especially for large companies with many engineering teams and a large number of microservices. Large companies can have difficulty with communication across many engineering teams, effective communication capabilities is an important feature of a code review tool.

There are a number of peer code review solutions available, the best choice depends on the needs of your company.

GitHub
One of the most popular tools for conducting peer code reviews is GitHub. There are many engineering teams that use GitHub for source control and pull requests for code that is ready for review. GitHub comments can be used by teams to discuss code changes and other issues. Once the review is approved and finalized, the code can be merged.

Collaborator
Collaborator
is a code review tool that helps development, testing, and management teams work together to produce high quality code. It allows teams to peer review code, user stories and test plans in a transparent, collaborative framework - instantly keeping the entire team up to speed on changes made to the code.

By enabling team members to work together to review their work, Collaborator can help you catch bugs before your software hits the market.

Collaborator also features GitHub pull request support providing an enhanced peer code review workflow.

Internal solutions
Some companies have built and use their own internal tools for conducting peer code reviews. For example, there are many Microsoft developers that use a collaborative code review tool called CodeFlow. CodeFlow is an in-house code review tool developed and used by Microsoft. CodeFlow not only allows developers and managers at Microsoft to conduct code reviews, but also makes it possible to mine data from code reviews as well as generate metrics and analytics from the data.

Peer code review tools help companies streamline the peer code review process and help ensure that useful feedback is produced.

Choosing the best peer code review system and tools for a project based on microservices depends on a variety of factors including the number of engineering teams and microservices involved. If the project involves dozens of autonomous teams building and deploying hundreds of microservices, a highly scalable, efficient peer code review system would be needed.

The lasting benefits of peer code review
A microservices architecture is often built, deployed, and managed by many engineering teams each responsible for one or more specific services.

Peer code reviews can help companies promote open communication, transparency, knowledge sharing, shared code ownership, and many other benefits.

These benefits can help ensure code quality and architectural consistency across many engineering teams and microservices.

Need help implementing code review?
Everyone on your team understands the benefits of using a tool for code review except for one person; your boss. To help with this issue, we've recently interviewed over a handful of developers who have given us their best guidelines for how you can successfully approach your boss when it comes time to implementing a code review tool.

They explain what they want you to know and what they want you to do to get your bosses approval for a code review tool.

More Stories By SmartBear Blog

As the leader in software quality tools for the connected world, SmartBear supports more than two million software professionals and over 25,000 organizations in 90 countries that use its products to build and deliver the world’s greatest applications. With today’s applications deploying on mobile, Web, desktop, Internet of Things (IoT) or even embedded computing platforms, the connected nature of these applications through public and private APIs presents a unique set of challenges for developers, testers and operations teams. SmartBear's software quality tools assist with code review, functional and load testing, API readiness as well as performance monitoring of these modern applications.

@MicroservicesExpo Stories
@DevOpsSummit at Cloud Expo taking place Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center, Santa Clara, CA, is co-located with the 21st International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is ...
With Cloud Foundry you can easily deploy and use apps utilizing websocket technology, but not everybody realizes that scaling them out is not that trivial. In his session at 21st Cloud Expo, Roman Swoszowski, CTO and VP, Cloud Foundry Services, at Grape Up, will show you an example of how to deal with this issue. He will demonstrate a cloud-native Spring Boot app running in Cloud Foundry and communicating with clients over websocket protocol that can be easily scaled horizontally and coordinate...
Docker is on a roll. In the last few years, this container management service has become immensely popular in development, especially given the great fit with agile-based projects and continuous delivery. In this article, I want to take a brief look at how you can use Docker to accelerate and streamline the software development lifecycle (SDLC) process.
DevOps at Cloud Expo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to w...
In his session at 20th Cloud Expo, Scott Davis, CTO of Embotics, discussed how automation can provide the dynamic management required to cost-effectively deliver microservices and container solutions at scale. He also discussed how flexible automation is the key to effectively bridging and seamlessly coordinating both IT and developer needs for component orchestration across disparate clouds – an increasingly important requirement at today’s multi-cloud enterprise.
IT organizations are moving to the cloud in hopes to approve efficiency, increase agility and save money. Migrating workloads might seem like a simple task, but what many businesses don’t realize is that application migration criteria differs across organizations, making it difficult for architects to arrive at an accurate TCO number. In his session at 21st Cloud Expo, Joe Kinsella, CTO of CloudHealth Technologies, will offer a systematic approach to understanding the TCO of a cloud application...
API Security has finally entered our security zeitgeist. OWASP Top 10 2017 - RC1 recognized API Security as a first class citizen by adding it as number 10, or A-10 on its list of web application vulnerabilities. We believe this is just the start. The attack surface area offered by API is orders or magnitude larger than any other attack surface area. Consider the fact the APIs expose cloud services, internal databases, application and even legacy mainframes over the internet. What could go wrong...
The goal of Continuous Testing is to shift testing left to find defects earlier and release software faster. This can be achieved by integrating a set of open source functional and performance testing tools in the early stages of your software delivery lifecycle. There is one process that binds all application delivery stages together into one well-orchestrated machine: Continuous Testing. Continuous Testing is the conveyer belt between the Software Factory and production stages. Artifacts are m...
In IT, we sometimes coin terms for things before we know exactly what they are and how they’ll be used. The resulting terms may capture a common set of aspirations and goals – as “cloud” did broadly for on-demand, self-service, and flexible computing. But such a term can also lump together diverse and even competing practices, technologies, and priorities to the point where important distinctions are glossed over and lost.
In his session at @DevOpsSummit at 20th Cloud Expo, Kelly Looney, director of DevOps consulting for Skytap, showed how an incremental approach to introducing containers into complex, distributed applications results in modernization with less risk and more reward. He also shared the story of how Skytap used Docker to get out of the business of managing infrastructure, and into the business of delivering innovation and business value. Attendees learned how up-front planning allows for a clean sep...
Most companies are adopting or evaluating container technology - Docker in particular - to speed up application deployment, drive down cost, ease management and make application delivery more flexible overall. As with most new architectures, this dream takes a lot of work to become a reality. Even when you do get your application componentized enough and packaged properly, there are still challenges for DevOps teams to making the shift to continuous delivery and achieving that reduction in cost ...
Enterprise architects are increasingly adopting multi-cloud strategies as they seek to utilize existing data center assets, leverage the advantages of cloud computing and avoid cloud vendor lock-in. This requires a globally aware traffic management strategy that can monitor infrastructure health across data centers and end-user experience globally, while responding to control changes and system specification at the speed of today’s DevOps teams. In his session at 20th Cloud Expo, Josh Gray, Chie...
"At the keynote this morning we spoke about the value proposition of Nutanix, of having a DevOps culture and a mindset, and the business outcomes of achieving agility and scale, which everybody here is trying to accomplish," noted Mark Lavi, DevOps Solution Architect at Nutanix, in this SYS-CON.tv interview at @DevOpsSummit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
We have already established the importance of APIs in today’s digital world (read about it here). With APIs playing such an important role in keeping us connected, it’s necessary to maintain the API’s performance as well as availability. There are multiple aspects to consider when monitoring APIs, from integration to performance issues, therefore a general monitoring strategy that only accounts for up-time is not ideal.
Web services have taken the development world by storm, especially in recent years as they've become more and more widely adopted. There are naturally many reasons for this, but first, let's understand what exactly a web service is. The World Wide Web Consortium (W3C) defines "web of services" as "message-based design frequently found on the Web and in enterprise software". Basically, a web service is a method of sending a message between two devices through a network. In practical terms, this ...
In his session at 20th Cloud Expo, Mike Johnston, an infrastructure engineer at Supergiant.io, discussed how to use Kubernetes to set up a SaaS infrastructure for your business. Mike Johnston is an infrastructure engineer at Supergiant.io with over 12 years of experience designing, deploying, and maintaining server and workstation infrastructure at all scales. He has experience with brick and mortar data centers as well as cloud providers like Digital Ocean, Amazon Web Services, and Rackspace. H...
All organizations that did not originate this moment have a pre-existing culture as well as legacy technology and processes that can be more or less amenable to DevOps implementation. That organizational culture is influenced by the personalities and management styles of Executive Management, the wider culture in which the organization is situated, and the personalities of key team members at all levels of the organization. This culture and entrenched interests usually throw a wrench in the work...
When you focus on a journey from up-close, you look at your own technical and cultural history and how you changed it for the benefit of the customer. This was our starting point: too many integration issues, 13 SWP days and very long cycles. It was evident that in this fast-paced industry we could no longer afford this reality. We needed something that would take us beyond reducing the development lifecycles, CI and Agile methodologies. We made a fundamental difference, even changed our culture...
As many know, the first generation of Cloud Management Platform (CMP) solutions were designed for managing virtual infrastructure (IaaS) and traditional applications. But that’s no longer enough to satisfy evolving and complex business requirements. In his session at 21st Cloud Expo, Scott Davis, Embotics CTO, will explore how next-generation CMPs ensure organizations can manage cloud-native and microservice-based application architectures, while also facilitating agile DevOps methodology. He wi...
We have Continuous Integration and we have Continuous Deployment, but what’s continuous across all of what we do is people. Even when tasks are automated, someone wrote the automation. So, Jayne Groll evangelizes about Continuous Everyone. Jayne is the CEO of the DevOps Institute and the author of Agile Service Management Guide. She talked about Continuous Everyone at the 2016 All Day DevOps conference. She describes it as "about people, culture, and collaboration mapped into your value streams....