Welcome!

@DevOpsSummit Authors: Automic Blog, Pat Romanski, Angsuman Dutta, Karthick Viswanathan, Liz McMillan

Related Topics: @DevOpsSummit, Microservices Expo, @CloudExpo

@DevOpsSummit: Article

Microservices Matter | @DevOpsSummit #DevOps #BigData #API #Microservices

What changes for your team when implementing microservices, when a "macroservices" approach (so to speak) is so ingrained?

Nine Reasons Microservices Matter to Architects, Developers & Testers
by Les Worley

Several years ago, I was a developer in a travel reservation aggregator. Our mission was to pull flight and hotel data from a bunch of cryptic reservation platforms, and provide it to other companies via an API library - for a fee. That was before companies like Expedia standardized such things.

We started with simple methods like getFlightLeg() or addPassengerName(), each performing a small, well-understood function. But our customers wanted bigger, more encompassing services that would "do it all." Soon, we'd "evolved" into a handful of über services, black boxes like createBookingFromScratch (not a real name). In one call, it could create an account, all the passengers, reserve multiple flight legs, seats, hotel, you name it. It even submitted payment.

Sounds great, right? When they worked, yes. But often the caller got a return code like "-181" with no real way of knowing:

  • What went wrong - the input, the back-end service, which back-end service?
  • What the exception even means?
  • Did any of the transaction go through?

The same thing has happened to web services. What started off as createCustomer now processes a whole order. Inside are so many points of failure the user has to code to handle. Customer already exists, invalid address, credit card cancelled, item out-of-stock, and a hundred others - not to mention server and database errors.

Now we're going back to smaller, more-transparent methods that each perform a single function and perform it well. Microservices.

But how does this framework affect impact various teams in the delivery cycle?
What changes for your team when implementing microservices, when a "macroservices" approach (so to speak) is so ingrained? There are three key audiences to consider; here's how Microservices architecture affects each.

The Architects
Of all people, architects understand the evolution of software design. Knowing this, they'll inherently understand why sometimes an old approach makes sense again and the implications of moving to a Microservices structure.

Think of microservices as analogs to the getters and setters in object-oriented programming languages. Unlike their procedural predecessors, those methods each performed a tiny task on an object. Using them, developers controlled the object's behavior at a fine-grained level. If an error or exception occurred, a simple return code revealed the problem.

Later we used those methods to build up more complex objects and APIs, to make the end user's life easier. Before long, though, those mega-methods APIs became the new black boxes, hiding all the details. If an error occurs down deep, the exception code is almost meaningless to the caller - or the tester.

That's what our web APIs are like today. Here's why this approach matters to the architect:

  1. It's pure and simple

The input object is the primary object acted upon. For example, createCustomer should act on a new Customer object, not on an Order or PaymentHistory. Those items might be related to a Customer, but they are separate from the Customer.

  1. It's transparent

The service does what it says, not 100 other actions the consumer has no idea about. A microservice can use other APIs, of course. It just shouldn't stray into performing operations not directly relevant to the task at hand. (Again, createCustomer shouldn't go off and create an Order or making a Payment... it should create a Customer.)

  1. It's less risky

Risk isn't linear with respect to code size: it's exponential. The less code executed in each testable unit, the easier it is to isolate bugs when they happen.

Any architect who has documented a system design with too few entry points can appreciate these benefits.

The Developers
Many of the same benefits also apply to developers. But most programmers are more pragmatic. Or they're just set in their ways and want to know what's in it for them.

That's normal. We all do that when comparing "the way we've always done it" with something new - especially if we think it will create more work. In some respects, embracing microservices does appear to create more work. Smaller chunks of functionality mean more methods to create and test.

More methods don't always mean more time and effort, though. Here are some ways that microservices can benefit the developer:

  1. It's agile

Most software groups today use - or wish they used - an agile methodology. Whether it's SCRUM, XP or another variant, developers like the agile approach. It breaks the work into small, focused and manageable chunks, to deliver of real value in short, iterative cycles. That's just what microservices do. They provide small well-defined pieces of functionality, instead of monolithic kitchen-sink APIs. Microservices are a perfect fit for agile sprints.

  1. It encourages parallel development

Each microservice is independent of others, so development can proceed in parallel. Programmers don't have to sit around waiting for someone else to finish, or waste time creating stubs. This means less unproductive time - which can often shorten a schedule rather than lengthen it.

  1. It makes debugging quick

If the testers are testing huge black boxes, they'll simply report that "it failed." To the developer, "it" might be thousands of lines of code, doing dozens of barely-related functions. With microservices, the testers can report 99% worked fine, but this one microservice failed. Because the method is small, the developer knows exactly where to look and can fix it with ease.

Most developers will agree that using agile sprints and parallel development are key to quality, on-time delivery. But since microservices also makes debugging easier, you'll should get a thumbs-up.

The Testers
The first complaint you'll hear from testers about implementing Microservices Architecture is: "There's so many more methods to test! More work for me."

True, there are more methods. Instead of one service to create-a-user-account-profile-accept-and-validate-new-payment-method-check-inventory-and-place-order, they'll have to test a couple dozen smaller services. That's going to mean a lot more time and effort from a team already strapped for resources, right?

Not always. Here are some ways Microservices benefit the tester.

  1. Testing mega services can take longer

While you might have fewer methods to test for a mega API, the number of exceptions you have to test for is huge. Remember that a mega-service can call dozens of other services, and failure can happen anywhere. You'd better account for every possible error condition on every object touched in the API - if you even know what they are. (And good luck interpreting the exception codes.)

  1. Microservices are so much simpler

There may be more APIs to test, but you needn't worry trapping all those 157 "known" error codes as with mega services. (And what about the undocumented ones?) Each microservice has only a few failure points and limited error codes for you to test.

  1. Risk of code changes is lower

As mentioned before, risk grows exponentially with the size of the code being tested. Would you rather have one out of four monoliths fail after an upgrade - with no way to isolate why - or one out of 95 microservices?

One more thing for test teams to remember. Once these extra tests are set up, they can be reused again without modification. Further, using an automated tool to create and execute the tests means the actual testing needn't take more people or time at all.

Now that everyone's happy - who gets this task?
The architects, developers and testers should agree with you now: Microservices are the way to go! In the end, they can make life easier for everyone - including the consumers. The one remaining question is: Who orchestrates the bigger picture?

With a monolithic API, the designer and developer orchestrate all the actions that happen within it. The API consumer doesn't need to worry about it - until it fails.

With microservices, the caller consumes each one as part of a set of services, to collectively perform a larger task. That means someone has to plan, test and document the recommended sequences - to guide the end user in his own orchestration. (This subject is large enough that we'll save it for a later article or two.)

In the end, though, understanding API results is half the battle. Neither testers nor developers can easily interpret a failure within a monolithic service. And the API consumers shouldn't have to. Microservices is an old concept applied to the new world of web services APIs. It addresses the drawbacks of unwieldy black-box services.

Adopting microservices presents a few challenges, but there's no doubt that in this case, what's old is new again. And that's a good thing for everyone.

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.

@DevOpsSummit Stories
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. His expertise is in automating deployment, management, and problem resolution in these environments, allowing his teams to run large transactional applications with high availability and the speed the consumer demands.
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 works because of misaligned incentives.
SYS-CON Events announced today that Calligo, an innovative cloud service provider offering mid-sized companies the highest levels of data privacy and security, has been named "Bronze Sponsor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalised support service from its globally located cloud platforms. Through its four pillars of focus, Calligo delivers a platform that businesses can trust to deliver the high level of service and protection they expect and is lacking in many cloud offerings.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big Data are challenging the existing design patterns of the Data Center. The increase in complexity of managing legacy systems alongside new systems is beyond the ability of most IT departments. This leads to multiple tiers of storage and high economic costs, during a time in which IT is expected to do more with less.
DX World EXPO, LLC., a Lighthouse Point, Florida-based startup trade show producer and the creator of "DXWorldEXPO® - Digital Transformation Conference & Expo" has announced its executive management team. The team is headed by Levent Selamoglu, who has been named CEO. "Now is the time for a truly global DX event, to bring together the leading minds from the technology world in a conversation about Digital Transformation," he said in making the announcement.
"With Digital Experience Monitoring what used to be a simple visit to a web page has exploded into app on phones, data from social media feeds, competitive benchmarking - these are all components that are only available because of some type of digital asset," explained Leo Vasiliou, Director of Web Performance Engineering at Catchpoint Systems, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"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.
Kubernetes is an open source system for automating deployment, scaling, and management of containerized applications. Kubernetes was originally built by Google, leveraging years of experience with managing container workloads, and is now a Cloud Native Compute Foundation (CNCF) project. Kubernetes has been widely adopted by the community, supported on all major public and private cloud providers, and is gaining rapid adoption in enterprises. However, Kubernetes may seem intimidating and complex to learn. This is because Kubernetes is more of a toolset than a ready solution. Hence it’s essential to know when and how to apply the appropriate Kubernetes constructs.
"DX encompasses the continuing technology revolution, and is addressing society's most important issues throughout the entire $78 trillion 21st-century global economy," said Roger Strukhoff, Conference Chair. "DX World Expo has organized these issues along 10 tracks with more than 150 of the world's top speakers coming to Istanbul to help change the world."
"I think DevOps is now a rambunctious teenager – it’s starting to get a mind of its own, wanting to get its own things but it still needs some adult supervision," explained Thomas Hooker, VP of marketing at CollabNet, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"I will be talking about ChatOps and ChatOps as a way to solve some problems in the DevOps space," explained Himanshu Chhetri, CTO of Addteq, 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 are an IT services solution provider and we sell software to support those solutions. Our focus and key areas are around security, enterprise monitoring, and continuous delivery optimization," noted John Balsavage, President of A&I Solutions, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Your homes and cars can be automated and self-serviced. Why can't your storage? From simply asking questions to analyze and troubleshoot your infrastructure, to provisioning storage with snapshots, recovery and replication, your wildest sci-fi dream has come true. In his session at @DevOpsSummit at 20th Cloud Expo, Dan Florea, Director of Product Management at Tintri, provided a ChatOps demo where you can talk to your storage and manage it from anywhere, through Slack and similar services with Tintri's web services architecture and APIs. Impress your DevOps team with smart and autonomous infrastructure.
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 wait for long development cycles that produce software that is obsolete at launch. DevOps may be disruptive, but it is essential.
Internet of @ThingsExpo, 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 Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devices - computers, smartphones, tablets, and sensors - connected to the Internet by 2020. This number will continue to grow at a rapid pace for the next several decades. With major technology companies and startups seriously embracing IoT strategies, now is the perfect time to attend @ThingsExpo in Silicon Valley. Learn what is going on, contribute to the discussions, and ensure that your enterprise...
As enterprise cloud becomes the norm, businesses and government programs must address compounded regulatory compliance related to data privacy and information protection. The most recent, Controlled Unclassified Information and the EU’s GDPR have board level implications and companies still struggle with demonstrating due diligence. Developers and DevOps leaders, as part of the pre-planning process and the associated supply chain, could benefit from updating their code libraries and design by incorporating changes.
"I'm here to leverage my secret sauce, which is using outsourced development and the company that I utilize is delaPlex Software and they've basically allowed me to win Fortune 500 companies," noted Justin Witz, CTO of FRA and PlanTools, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
In his opening keynote at 20th Cloud Expo, Michael Maximilien, Research Scientist, Architect, and Engineer at IBM, discussed the full potential of the cloud and social data requires artificial intelligence. By mixing Cloud Foundry and the rich set of Watson services, IBM's Bluemix is the best cloud operating system for enterprises today, providing rapid development and deployment of applications that can take advantage of the rich catalog of Watson services to help drive insights from the vast trove of private and public data available to enterprises.
SYS-CON Events announced today that EnterpriseTech has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. EnterpriseTech is a professional resource for news and intelligence covering the migration of high-end technologies into the enterprise and business-IT industry, with a special focus on high-tech solutions in new product development, workload management, increased efficiency, and maximizing competitive edge.
"We began as LinuxAcademy.com about five years ago as a very small outfit. Since then we've transitioned into more of a DevOps training company - the technologies and the tooling around DevOps," explained Doug Vanderweide, an instructor at Linux Academy, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
DevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm. In their Day 3 Keynote at 20th Cloud Expo, Chris Brown, a Solutions Marketing Manager at Nutanix, and Mark Lavi, a Nutanix DevOps Solution Architect, explored the ways that Nutanix technologies empower teams to react faster than ever before and connect teams in ways that were either too complex or simply impossible with traditional infrastructures.
"NetApp's vision is how we help organizations manage data - delivering the right data in the right place, in the right time, to the people who need it, and doing it agnostic to what the platform is," explained Josh Atwell, Developer Advocate for NetApp, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of engineers can navigate the Carrier Ecosystem for your IT team acting as an extension of your business, producing a hassle-free experience.