Welcome!

Python Authors: Matt Davis, Jyoti Bansal, Pat Romanski, Donald Meyer, Liz McMillan

Related Topics: @DevOpsSummit, Linux Containers, Python

@DevOpsSummit: Blog Post

PaaS and #Microservices Part 3 By @bcferrycoder | @ DevOpsSummit #DevOps #PaaS

PaaS is at the forefront of this evolution & is now considered by many to be an essential component in the microservices toolset

This is part of the ever-expanding "Microservices and PaaS" blog series covering the rapidly evolving use of microservices in modern cloud software projects. Parts I and II introduced microservices concepts and discussed patterns and practices being spearheaded by microservices pioneers, notably Netflix, who were represented at a recent microservices meetup that was the genesis of this series.

Part III presented a list of challenges and pitfalls that adopters of microservices face. This list is formidable and somewhat daunting; pointing out the significant changes in mindset, organizational structure, and overall development practices needing to take place prior to plunging into microservices.

Fortunately, tooling and other supporting technologies are evolving almost as fast as the microservices practices are themselves. Platform-as-a-Service (PaaS) is at the forefront of this evolution and is now considered by many, for good reason, to be an essential component in the microservices toolset.

What follows, is a summary of a number of features provided by PaaS offerings that greatly simplify microservices development.

1. Polyglot Languages, Frameworks, and Persistence Layers
One significant benefit of microservices is that they don't tie a team or an organization to a single development language or framework. Each service can be built using the language and framework suitable for the task, for the data, or for the team.

But each language stack must be downloaded, installed, configured, and provisioned separately. Requiring each developer or team to manually do this introduces considerable complexity and disrupts the overall development flow. PaaS completely eliminates any manual steps needed to provision the development stack, whether Java on Spring, Ruby on Rails, or Python on Django. These, and more, are instantly available when the microservice is deployed.

Similarly, microservices should use the persistence layer that makes sense for the job. Relational (MySQL), NoSQL (MongoDB), and caching (Redis) databases each have their own advantages, and a PaaS allows each to be instantly provisioned and wired to the microservice without requiring human intervention.

2. Consistent Testing Environments
Testing microservices is tricky, and practices to do so effectively are just now emerging. Regardless of the current state of testing, it's safe to say that if there are inconsistencies between the environments where microservices are developed, tested, and deployed to production, chaos will ensue. It is crucial that each of these environments is identical. Subtle differences will result in inconsistent test results and will wreak havoc.

A PaaS provides a predictable and consistent environment in every place a microservice is deployed, such as development, staging, QA, and production. Furthermore, a microcloud such as one provided by Stackato, where the full cloud stack runs on a laptop or desktop, extends this homogeneity making it available to all developers and team members at all times.

3. Logging
As I've discussed earlier, dealing with logs in complex cloud applications is a pain. This is particularly true in microservices-based applications where each microservice instance generates its own logs.

PaaS goes a long way to reduce this pain by providing automated log aggregation mechanisms where multiple logs from multiple microservice instances can be aggregated automatically and redirected to any number of log aggregation services. The PaaS takes care of making sure logging "just works" and ensures that all logs from all applications can be easily directed to a centralized destination like Loggly or Splunk, or just as easily directed to a home-grown PaaS-hosted log application.

4. Monitoring
Like logging, monitoring is essential to the successful operation of a microservices-based application. But the days of hand-rolling monitoring solutions are over. With short-lived microservice instances rapidly starting, stopping, and moving around the network, it's paramount that any monitoring solution be completely automated, with no human intervention required.

A PaaS will typically offer built-in monitoring to track common metrics, such as CPU load or memory use. In addition to providing these capabilities, Stackato also allows simple integration with specialized external monitoring tools and services such as Nagios and New Relic, and exposes the ability to manage and control the deployed microservices in response to monitoring events via its easily automatable REST interface.

5. Auto-scaling
Cloud applications must scale to accommodate variable usage loads. A microservices architecture allows separation of components so that the individual microservices that are causing a bottleneck can be scaled separately without having to scale out the entire application. This is a powerful approach, but scaling out multiple microservices is more complex than scaling out a single application instance.

Autoscaling is another area where PaaS shines. A specific microservice can be scaled automatically in response to metrics provided by internal or external instrumentation, responding to load events as they occur, without human intervention. The complexities of autoscaling, and the burden of dealing with these complexities, disappear when using a PaaS.

6. Service Discovery
Patterns for service discovery, naming, and routing to microservices are at their infancy. PaaS offerings like Stackato provide basic building blocks for accomplishing this, such as allowing service locations (URIs) and credentials to be injected into the application environment, as well as providing a means to publish and access these externally.

7. Instant Rollback and Versioning
As discussed in Part I of this blog series, the use of Immutable Service Patterns, where multiple service versions are deployed side by side, is a useful technique to enable continuous deployment and delivery of microservices in a way that allows new features to be rolled out safely.

A related practice is to use the built-in versioning and rollback mechanisms provided with a PaaS, where after deploying a new service version, it can be instantly rolled back to any previous version if a problem arises. For example, Stackato will keep track of every version of a microservice or application that gets deployed, and exposes both user interface and API to instantly rollback and roll-forward between these versions. The UI requires manual intervention, while the API allows this process to be easily automated in response to monitored events.

8. Availability and Failure Resilience
A failure in a monolithic application often brings the entire system to its knees. In contrast, a microservices system is composed of multiple independent loosely-coupled microservices. It can be designed so that the failure of one microservice will not significantly impact the rest of the system. It can continue to run in a degraded mode where the broken service (and perhaps the associated user interface) is disabled, but the rest of the application remains functional.

Obviously it's preferable that all services remain operational at all times, and some services might be essential for the operation of the system. This requires a high-availability (HA) environment to guarantee that multiple microservice instances run across availability zones in order to survive the effects of catastrophic failure.

HA is an art and science in itself, but PaaS goes a long way to shield the complexity of HA from the developer. For example, Stackato allows the creation of multiple availability zones which can span racks or data centers, and can guarantee that one or more microservice instance is always running in each of these zones. Providing a common and simple availability platform goes a long way towards freeing the development team to focus on the application and not on the plumbing.

9. Get out of the Weeds
There are countless other areas in microservices where plumbing is required, and dealing with this plumbing hampers the overall development flow by adding complexity and cost. Examples include:

  • Routing network traffic to application instances
  • Load balancing
  • Multi-node cluster configuration and management
  • Interfacing with the infrastructure layer (IaaS)
  • Service naming and URI mapping

PaaS takes care of these plumbing details so the development team doesn't need to get mired in the weeds.

10. On Demand / Self Service
A significant benefit of PaaS is its "self-service" nature, allowing the provisioning of resources on-demand without the need to submit a service ticket, or involve other humans in any way. This speeds development, streamlines the overall development flow, and allows free experimentation where developers can spin up clusters and services without being encumbered by process. This self-service capability is essential for a microservices-oriented development organization.

PaaS Fits Microservices
As Adrian Cockroft made abundently clear in his microservices presentation, PaaS is a crucial piece of the overall microservices story, for the reasons listed above and others. PaaS not only standardizes environments and significantly reduces complexity, but it also provides a foundation for the major organizational changes required to move to a microservices approach.

Very few development organizations have the means and resources that Netflix had at their disposal to push through a company-wide initiative to overhaul their entire software architecture, organization, and mindset to a microservices approach. As Donnie Berkholz pointed out in last week's fireside chat with Bernard Golden, changing the org-chart is itself a huge undertaking, and this won't happen until the tooling is in place to lower the barriers for devops.

The tooling Donnie is referring to is evolving as PaaS, which provides a powerful and self-service means for targeted teams to successfully deliver microservices. Stackato, the world-class enterprise PaaS from ActiveState, is a prime example of a PaaS offering that streamlines microservices development.

The post Microservices and PaaS appeared first on ActiveState.

More Stories By John Wetherill

Originally from Canada, John has spent much of his career designing and building software at a handful of startups, at Sun Microsystems, NeXT Inc., and more recently in the smart grid and energy space. His biggest passion is for developer tools, or more generally any tool, language, process, or system that improves developer productivity and quality of life. Without question, Stackato is one such tool and the reason why he is here. No stranger to technology evangelism, John spent several years in the late 1990's on Sun's Technology Evangelism Team spreading the Java Gospel across the globe and focusing on the prolific number of Java technologies. Now John is now returning to his roots, as a technology evangelist working for a Canadian company, albeit remotely from Santa Cruz.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
New competitors, disruptive technologies, and growing expectations are pushing every business to both adopt and deliver new digital services. This ‘Digital Transformation’ demands rapid delivery and continuous iteration of new competitive services via multiple channels, which in turn demands new service delivery techniques – including DevOps. In this power panel at @DevOpsSummit 20th Cloud Expo, moderated by DevOps Conference Co-Chair Andi Mann, panelists examined how DevOps helps to meet the de...
No hype cycles or predictions of zillions of things here. IoT is big. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, Associate Partner at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He discussed the evaluation of communication standards and IoT messaging protocols, data analytics considerations, edge-to-cloud tec...
"When we talk about cloud without compromise what we're talking about is that when people think about 'I need the flexibility of the cloud' - it's the ability to create applications and run them in a cloud environment that's far more flexible,” explained Matthew Finnie, CTO of Interoute, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
IoT solutions exploit operational data generated by Internet-connected smart “things” for the purpose of gaining operational insight and producing “better outcomes” (for example, create new business models, eliminate unscheduled maintenance, etc.). The explosive proliferation of IoT solutions will result in an exponential growth in the volume of IoT data, precipitating significant Information Governance issues: who owns the IoT data, what are the rights/duties of IoT solutions adopters towards t...
With the introduction of IoT and Smart Living in every aspect of our lives, one question has become relevant: What are the security implications? To answer this, first we have to look and explore the security models of the technologies that IoT is founded upon. In his session at @ThingsExpo, Nevi Kaja, a Research Engineer at Ford Motor Company, discussed some of the security challenges of the IoT infrastructure and related how these aspects impact Smart Living. The material was delivered interac...
The Internet giants are fully embracing AI. All the services they offer to their customers are aimed at drawing a map of the world with the data they get. The AIs from these companies are used to build disruptive approaches that cannot be used by established enterprises, which are threatened by these disruptions. However, most leaders underestimate the effect this will have on their businesses. In his session at 21st Cloud Expo, Rene Buest, Director Market Research & Technology Evangelism at Ara...
When growing capacity and power in the data center, the architectural trade-offs between server scale-up vs. scale-out continue to be debated. Both approaches are valid: scale-out adds multiple, smaller servers running in a distributed computing model, while scale-up adds fewer, more powerful servers that are capable of running larger workloads. It’s worth noting that there are additional, unique advantages that scale-up architectures offer. One big advantage is large memory and compute capacity...
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
In his session at @ThingsExpo, Eric Lachapelle, CEO of the Professional Evaluation and Certification Board (PECB), provided an overview of various initiatives to certify the security of connected devices and future trends in ensuring public trust of IoT. Eric Lachapelle is the Chief Executive Officer of the Professional Evaluation and Certification Board (PECB), an international certification body. His role is to help companies and individuals to achieve professional, accredited and worldwide re...
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
Amazon started as an online bookseller 20 years ago. Since then, it has evolved into a technology juggernaut that has disrupted multiple markets and industries and touches many aspects of our lives. It is a relentless technology and business model innovator driving disruption throughout numerous ecosystems. Amazon’s AWS revenues alone are approaching $16B a year making it one of the largest IT companies in the world. With dominant offerings in Cloud, IoT, eCommerce, Big Data, AI, Digital Assista...
Artificial intelligence, machine learning, neural networks. We’re in the midst of a wave of excitement around AI such as hasn’t been seen for a few decades. But those previous periods of inflated expectations led to troughs of disappointment. Will this time be different? Most likely. Applications of AI such as predictive analytics are already decreasing costs and improving reliability of industrial machinery. Furthermore, the funding and research going into AI now comes from a wide range of com...
SYS-CON Events announced today that CA Technologies has been named "Platinum Sponsor" of SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CA Technologies helps customers succeed in a future where every business - from apparel to energy - is being rewritten by software. From planning to development to management to security, CA creates software that fuels transformation for companies in the applic...
Multiple data types are pouring into IoT deployments. Data is coming in small packages as well as enormous files and data streams of many sizes. Widespread use of mobile devices adds to the total. In this power panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists looked at the tools and environments that are being put to use in IoT deployments, as well as the team skills a modern enterprise IT shop needs to keep things running, get a handle on all this data, and deliver...
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 devic...
SYS-CON Events announced today that Cloud Academy named "Bronze Sponsor" of 21st International Cloud Expo which will take place October 31 - November 2, 2017 at the Santa Clara Convention Center in Santa Clara, CA. Cloud Academy is the industry’s most innovative, vendor-neutral cloud technology training platform. Cloud Academy provides continuous learning solutions for individuals and enterprise teams for Amazon Web Services, Microsoft Azure, Google Cloud Platform, and the most popular cloud com...
SYS-CON Events announced today that Enzu will exhibit at SYS-CON's 21st Int\ernational Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Enzu’s mission is to be the leading provider of enterprise cloud solutions worldwide. Enzu enables online businesses to use its IT infrastructure to their competitive advantage. By offering a suite of proven hosting and management services, Enzu wants companies to focus on the core of their ...
We build IoT infrastructure products - when you have to integrate different devices, different systems and cloud you have to build an application to do that but we eliminate the need to build an application. Our products can integrate any device, any system, any cloud regardless of protocol," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA
SYS-CON Events announced today that GrapeUp, the leading provider of rapid product development at the speed of business, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Grape Up is a software company, specialized in cloud native application development and professional services related to Cloud Foundry PaaS. With five expert teams that operate in various sectors of the market acr...
SYS-CON Events announced today that Ayehu will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on October 31 - November 2, 2017 at the Santa Clara Convention Center in Santa Clara California. Ayehu provides IT Process Automation & Orchestration solutions for IT and Security professionals to identify and resolve critical incidents and enable rapid containment, eradication, and recovery from cyber security breaches. Ayehu provides customers greater control over IT infras...