Welcome!

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

Related Topics: @DevOpsSummit, Microservices Expo, @CloudExpo, Python

@DevOpsSummit: Article

Microservices and Python | @DevOpsSummit #DevOps #IoT #Microservices

Microservices, an app architecture style that leans mostly on independent, self-contained programs, are becoming the new norm

How Microservices Are Transforming Python Development
By Omed Habib

The goal of any tech business worth its salt is to provide the best product or service to its clients in the most efficient and cost-effective way possible. This is just as true in the development of software products as it is in other product design services.

Microservices, an app architecture style that leans mostly on independent, self-contained programs, are quickly becoming the new norm, so to speak. With this change comes a declining reliance on older SOAs like COBRA, a push toward more sustainable API approaches and fewer monolithic development and deployment models.

So why are microservices suddenly at the forefront of the software architecture conversation? They are changing how Python-based developers are getting things done in a way that’s far more efficient than before, and in more ways than one.

The Differences Between Microservices and SOAs
Diving deeper into the
differences between microservices and SOAs, you have to remember that, at their core, microservices are essentially an offshoot of SOAs, although they both act and deploy independently from each other.

SOAs also follow four major tenets during the development and deployment phases:

  • Their boundaries are inherently explicit.

  • They provide autonomous services.

  • Those services share both schema and contract but not class.

  • The compatibility of those services is policy-based.

Once you’ve established these distinctions, you can then make a far more accurate comparison between microservices and SOAs in that SOAs are architectural patterns that use their respective components to provide services to other components, within or without the same application. In microservices, only services independent of the application in question deploy those same components.

Although microservices are not a novel or inherently “new” architecture style, as much of their roots derive from the founding design principles found in Unix language, there are still several implications of an increase in productivity and innovation if more developers use microservices.

The Evolution of Microservices
Overall, the timeline for the evolution of Python-based apps, from monolithic to microservices, has been a relatively short one. On top of that, much of the evolution was born out of a necessity for forward progression and increased ease among developers.

It is widely accepted that microservices have more substance attached to them because they’ve done away with bulky XML-based schemas that large corporations are known for using in favor of slimmer applications that rely far less on bloat. Ultimately, microservices have become more common over time because they:

  • Can deploy independently of the core application

  • Can function properly while remaining separate from dependent responsibilities

  • Possess strong backward compatibility, making them less prone to breakage

Development team advantages include:

  • Allow for the decentralization of data management so teams and subteams can be responsible for maintenance on a far more granular level

  • Enable the use of infrastructure automation, from testing to deployment, without much need for human supervision

  • Faster ramp-up time for new team members means they can learn processes faster by focusing on smaller chunks of data.

There are still widely accepted, monolithic-first approaches within the development phase that development teams can break down into SOAs and, further still, into microservices. Some of the more successful applications still employ monolith-first patterns but in conjunction with the use of microservices and even nano-services.

A Word (or Two) on Nano Services
There’s plenty of support (and animosity) toward just how deep developers should go down the rabbit hole concerning
the development and use of nano-services. Just as you’d think, nano-services are simply components that designers have drilled down to an even more granular level than their microservices predecessors.

For some, it is a virtual splitting of hairs while, for others, it is yet another landscape that we have yet to understand fully and, therefore, properly utilize. Both sides can agree, however, that the status quo will likely share neither sentiment anytime soon.

Advantages of Microservices
While developers and the enterprise-level businesses they work for tend to flock toward the main codebase approach of a monolithic architecture for its benefits, there are also some pros that come with building a software product incrementally.

Microservices come with a unique set of advantages, some briefly mentioned earlier, that allow developers to create building blocks that they can then retrofit into an existing codebase as needed. Other significant advantages include:

  • There’s ability to change the implementation of a public API, without breaking it, the moment you define it and others start using it

  • The services are so small that they make maintenance from one developer to another easier to facilitate and understand.

  • There are no development language limitations, so you can use what’s best for you and your team.

  • It is easier to upgrade systems one microservice at a time than it is to upgrade a monolithic system.

  • Cross-implementation compatibility allows you to prototype in one language and re-implement in another.

  • Regardless of the size of your operation, if most of your product builds require more detailed components and adaptive development, then microservices are a better approach.

Current Microservices Implementations
Arguably, the
go-to implementation for most microservices today, Python-based or otherwise, is Docker. Aside from increased agility and control, many of today’s developers are embracing the ability to work remotely, so naturally any implementation that allows for more portability than the competition is greatly appreciated by the developer community.

Other popular implementations include but are not limited to:

  • Flask

  • MicroService4Net

  • Microsoft Service Fabric

  • NetKernel

  • Nirmata

  • Spring Cloud

Currently, the trend toward component development and product compartmentalization will continue as the need for customizable applications, and modular design becomes more prevalent.

Why Python?
Most Python developers who implement microservices during development likely use the
RESTful approach to creating an API, which is an all-inclusive way of utilizing available Web protocols and software to remotely search and manipulate objects.

Reverse engineered by Dr. Roy Fielding in 2000, RESTful microservices has a basic premise that follows three distinct canons:

  • You are required to use any provided links or other resources, making your application’s API browseable.

  • You are expected to recognize the uniform interface of HTTP.

  • You are expected to use each of the verbs (e.g., get, post, put, delete) without violating their own semantics.

Python’s Development Advantages
As mentioned before, you can implement and re-implement microservices across virtually every language, but with Python, there are several advantages that make working within it straightforward and convenient. They include:

  • So long as the API is formatted correctly, prototyping is easier and quicker than in other languages.

  • Instead of having to rely on full-fledged installations of implementations, like Django, you can use lighter installs that are just as powerful, like Flask and others.

  • Looking toward the future, it is a fantastic opportunity to start coding in Python 3, if you do not already.

  • Backward compatibility with legacy languages, like PHP and ASP, allows you to build Web service front ends to a host of microservices.

Furthermore, microservices help to optimize the performance of Python-developed applications two-fold:

  • They become easier to monitor, due to the fact apps are now broken up into components.

  • Performance issues become easier to identify, allowing for more granular diagnoses of flawed, bottlenecked or buggy services.

Moreover, for a design pattern that’s used by the likes of Google, Amazon, Microsoft, Netflix, Uber and more, there are no signs of this architecture going anywhere any time soon.

The Future of Microservices
Although it is easy to agree that the future of software architecture development is moving in the direction of increased modularity and microservices, that does not mean it will not come with its fair share of complications. This is doubly true for larger companies that have created much of their codebase with a monolithic approach in mind.

There are plenty of reasons why an industry-wide shift to microservices might fail, but there are a few challenges that developers and software architects should be mindful of in the coming years:

  • Complete software compatibility: With componentization, much of software’s success depends on its compatibility with its respective components and vice versa. Moving code from service to service becomes difficult, and a development team would need to orchestrate complete coordination.

  • Clean composition: If microservice components do not compose code cleanly, you are simply over complicating the inner workings of connections between their respective components. This shifts unnecessary stress and complexities to an area that’s harder to control.

  • Evolutionary design considerations: When you decide to work in an environment where you can break down components, you are faced with the challenge of figuring out how and where to break them down. It calls for making the risky decision of knowing what you can scrap or save from version 1.0 to version 5.1 and beyond far ahead of time.

  • Required skill sets: Not all teams are created equal. This means that because one team may have the skills required to adopt new techniques does not mean your team will. Foisting an ill-equipped team into uncharted territory could prove disastrous for your entire infrastructure.

Although the distinctions between SOAs and microservices might seem a bit minute, each one still has its intended purposes, whether you are using Python or any other development language.

The fact remains that microservices are only going to become more of necessity as development projects require more specific (and complex) functions and harness the interconnectedness that can come with coding for mutually independent services; however, these changes can, and may, come with a unique collection of augmentations and subsequent headaches.

The post How Microservices are Transforming Python Development appeared first on Application Performance Monitoring Blog | AppDynamics.

More Stories By Jyoti Bansal

In high-production environments where release cycles are measured in hours or minutes — not days or weeks — there's little room for mistakes and no room for confusion. Everyone has to understand what's happening, in real time, and have the means to do whatever is necessary to keep applications up and running optimally.

DevOps is a high-stakes world, but done well, it delivers the agility and performance to significantly impact business competitiveness.

@ThingsExpo Stories
"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.
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...
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.
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...
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...