The Wayback Machine - https://web.archive.org/web/20180428165633/http://python.sys-con.com:80/node/3213230

Welcome!

Python Authors: Matt Davis, AppDynamics Blog, 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
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
DXWorldEXPO LLC, the producer of the world's most influential technology conferences and trade shows has announced the 22nd International CloudEXPO | DXWorldEXPO "Early Bird Registration" is now open. Register for Full Conference "Gold Pass" ▸ Here (Expo Hall ▸ Here)
As data explodes in quantity, importance and from new sources, the need for managing and protecting data residing across physical, virtual, and cloud environments grow with it. Managing data includes protecting it, indexing and classifying it for true, long-term management, compliance and E-Discovery. Commvault can ensure this with a single pane of glass solution – whether in a private cloud, a Service Provider delivered public cloud or a hybrid cloud environment – across the heterogeneous enter...
The Jevons Paradox suggests that when technological advances increase efficiency of a resource, it results in an overall increase in consumption. Writing on the increased use of coal as a result of technological improvements, 19th-century economist William Stanley Jevons found that these improvements led to the development of new ways to utilize coal. In his session at 19th Cloud Expo, Mark Thiele, Chief Strategy Officer for Apcera, compared the Jevons Paradox to modern-day enterprise IT, examin...
DXWorldEXPO LLC announced today that ICC-USA, a computer systems integrator and server manufacturing company focused on developing products and product appliances, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City. ICC is a computer systems integrator and server manufacturing company focused on developing products and product appliances to meet a wide range of ...
We are seeing a major migration of enterprises applications to the cloud. As cloud and business use of real time applications accelerate, legacy networks are no longer able to architecturally support cloud adoption and deliver the performance and security required by highly distributed enterprises. These outdated solutions have become more costly and complicated to implement, install, manage, and maintain.SD-WAN offers unlimited capabilities for accessing the benefits of the cloud and Internet. ...
In an era of historic innovation fueled by unprecedented access to data and technology, the low cost and risk of entering new markets has leveled the playing field for business. Today, any ambitious innovator can easily introduce a new application or product that can reinvent business models and transform the client experience. In their Day 2 Keynote at 19th Cloud Expo, Mercer Rowe, IBM Vice President of Strategic Alliances, and Raejeanne Skillern, Intel Vice President of Data Center Group and ...
Here are the Top 20 Twitter Influencers of the month as determined by the Kcore algorithm, in a range of current topics of interest from #IoT to #DeepLearning. To run a real-time search of a given term in our website and see the current top influencers, click on the topic name. Among the top 20 IoT influencers, ThingsEXPO ranked #14 and CloudEXPO ranked #17.
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
From 2013, NTT Communications has been providing cPaaS service, SkyWay. Its customer’s expectations for leveraging WebRTC technology are not only typical real-time communication use cases such as Web conference, remote education, but also IoT use cases such as remote camera monitoring, smart-glass, and robotic. Because of this, NTT Communications has numerous IoT business use-cases that its customers are developing on top of PaaS. WebRTC will lead IoT businesses to be more innovative and address...
Charles Araujo is an industry analyst, internationally recognized authority on the Digital Enterprise and author of The Quantum Age of IT: Why Everything You Know About IT is About to Change. As Principal Analyst with Intellyx, he writes, speaks and advises organizations on how to navigate through this time of disruption. He is also the founder of The Institute for Digital Transformation and a sought after keynote speaker. He has been a regular contributor to both InformationWeek and CIO Insight...
Recently, WebRTC has a lot of eyes from market. The use cases of WebRTC are expanding - video chat, online education, online health care etc. Not only for human-to-human communication, but also IoT use cases such as machine to human use cases can be seen recently. One of the typical use-case is remote camera monitoring. With WebRTC, people can have interoperability and flexibility for deploying monitoring service. However, the benefit of WebRTC for IoT is not only its convenience and interopera...
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...
WebRTC is great technology to build your own communication tools. It will be even more exciting experience it with advanced devices, such as a 360 Camera, 360 microphone, and a depth sensor camera. In his session at @ThingsExpo, Masashi Ganeko, a manager at INFOCOM Corporation, introduced two experimental projects from his team and what they learned from them. "Shotoku Tamago" uses the robot audition software HARK to track speakers in 360 video of a remote party. "Virtual Teleport" uses a multip...
In his session at Cloud Expo, Alan Winters, U.S. Head of Business Development at MobiDev, presented a success story of an entrepreneur who has both suffered through and benefited from offshore development across multiple businesses: The smart choice, or how to select the right offshore development partner Warning signs, or how to minimize chances of making the wrong choice Collaboration, or how to establish the most effective work processes Budget control, or how to maximize project result...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things'). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing. IoT is not about the devices, its about the data consumed and generated. The devices are tools, mechanisms, conduits. This paper discusses the considerations when dealing with the...
Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, discussed how they built...
When shopping for a new data processing platform for IoT solutions, many development teams want to be able to test-drive options before making a choice. Yet when evaluating an IoT solution, it’s simply not feasible to do so at scale with physical devices. Building a sensor simulator is the next best choice; however, generating a realistic simulation at very high TPS with ease of configurability is a formidable challenge. When dealing with multiple application or transport protocols, you would be...
Data is the fuel that drives the machine learning algorithmic engines and ultimately provides the business value. In his session at Cloud Expo, Ed Featherston, a director and senior enterprise architect at Collaborative Consulting, discussed the key considerations around quality, volume, timeliness, and pedigree that must be dealt with in order to properly fuel that engine.
Two weeks ago (November 3-5), I attended the Cloud Expo Silicon Valley as a speaker, where I presented on the security and privacy due diligence requirements for cloud solutions. Cloud security is a topical issue for every CIO, CISO, and technology buyer. Decision-makers are always looking for insights on how to mitigate the security risks of implementing and using cloud solutions. Based on the presentation topics covered at the conference, as well as the general discussions heard between sessio...