Pro RESTful APIs with Micronaut: Build Java-Based Microservices with REST, JSON, and XML 2 / converted Edition Sanjay Patni - Read the ebook online or download it for a complete experience
Pro RESTful APIs with Micronaut: Build Java-Based Microservices with REST, JSON, and XML 2 / converted Edition Sanjay Patni - Read the ebook online or download it for a complete experience
https://ebookmass.com/product/learn-microservices-with-spring-
boot-3-3rd-converted-edition-moises-macero-garcia/
https://ebookmass.com/product/coding-clean-reliable-and-safe-rest-
apis-with-asp-net-core-8-1st-edition-anthony-giretti/
Beginning Cloud Native Development with MicroProfile,
Jakarta EE, and Kubernetes: Java DevOps for Building and
Deploying Microservices-based Applications 1st Edition
Tarun Telang
https://ebookmass.com/product/beginning-cloud-native-development-with-
microprofile-jakarta-ee-and-kubernetes-java-devops-for-building-and-
deploying-microservices-based-applications-1st-edition-tarun-telang/
https://ebookmass.com/product/learning-java-beginning-programming-
with-java-for-dummies-bach/
Sanjay Patni
This work is subject to copyright. All rights are solely and exclusively
licensed by the Publisher, whether the whole or part of the material is
concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in
any other physical way, and transmission or information storage and
retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed.
The publisher, the authors, and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
Abstract
APIs are not new. They’ve served as interfaces that enable applications to communicate with
each other for decades. But the role of APIs has changed dramatically in the last few years.
Innovative companies have discovered that APIs can be used as an interface to the business,
allowing them to monetize digital assets, extend their value proposition with partner-
delivered capabilities, and connect to customers across channels and devices. When you
create an API, you are allowing others within or outside of your organization to make use of
your service or product to create new applications, attract customers, or expand their
business. Internal APIs enhance the productivity of development teams by maximizing
reusability and enforcing consistency in new applications. Public APIs can add value to your
business by allowing third-party developers to enhance your services or bring their
customers to you. As developers find new applications for your services and data, a network
effect occurs, delivering significant bottom-line business impact. For example, Expedia
opened up their travel booking services to partners through an API to launch the Expedia
Affiliate Network, building a new revenue stream that now contributes $2B in annual
revenue. Salesforce released APIs to enable partners to extend the capabilities of their
platform and now generates half of their annual revenue through those APIs, which could be
SOAP based (JAX-WS) and, more recently, RESTful (JAX-RS), Spring Boot, and now Micronaut.
A SOAP web service depends upon a number of technologies (such as UDDI, WSDL, SOAP,
HTTP) and protocols to transport and transform data between a service provider and the
consumer and can be created with JAX-WS.
Later, Roy Fielding (in the year 2000) presented his doctoral dissertation, “Architectural
Styles and the Design of Network-based Software Architecture.” He coined the term “REST,” an
architectural style for distributed hypermedia systems. Put simply, REST (short for
REpresentational State Transfer) is an architectural style defined to help create and organize
distributed systems. The keyword from that definition should be “style,” because an
important aspect of REST (and which is one of the main reasons books like this one exist) is
that it is an architectural style—not a guideline, not a standard, or anything that would imply
that there are a set of hard rules to follow in order to end up having a RESTful architecture.
In this chapter, I’ll be covering REST fundamentals, SOAP vs. REST, and web architectural
style to provide a solid foundation and better prepare you for what you’ll see in later chapters.
The main idea behind REST is that a distributed system, organized RESTfully, will improve
in the following areas:
Performance: The communication style proposed by REST is meant to be efficient and
simple, allowing a performance boost on systems that adopt it.
Scalability of component interaction: Any distributed system should be able to handle this
aspect well enough, and the simple interaction proposed by REST greatly allows for this.
Simplicity of interface: A simple interface allows for simpler interactions between systems,
which in turn can grant benefits like the ones previously mentioned.
Modifiability of components: The distributed nature of the system, and the separation of
concerns proposed by REST (more on this in a bit), allows for components to be modified
independently of each other at a minimum cost and risk.
Portability: REST is technology and language agnostic, meaning that it can be implemented
and consumed by any type of technology (there are some constraints that I’ll go over in a
bit, but no specific technology is enforced).
Reliability: The stateless constraint proposed by REST (more on this later) allows for the
easier recovery of a system after failure.
Visibility: Again, the stateless constraint proposed has the added full state of said request
(this will become clear once I talk about the constraints in a bit). From this list, some direct
benefits can be extrapolated. A component-centric design allows you to make systems that
are very fault tolerant. Having the failure of one component not affect the entire stability of
the system is a great benefit for any system. Interconnecting components is quite easy,
minimizing the risks when adding new features or scaling up or down. A system designed
with REST in mind will be accessible to a wider audience, thanks to its portability (as
described earlier). With a generic interface, the system can be used by a wider range of
developers. In order to achieve these properties and benefits, a set of constraints were
added to REST to help define a uniform connector interface. REST is not suggested to use
when you need to enforce a strict contract between a client and a server and when
performing transactions that involve multiple calls.
Client-Server
Visit https://ebookmass.com today to explore
a vast collection of ebooks across various
genres, available in popular formats like
PDF, EPUB, and MOBI, fully compatible with
all devices. Enjoy a seamless reading
experience and effortlessly download high-
quality materials in just a few simple steps.
Plus, don’t miss out on exciting offers that
let you access a wealth of knowledge at the
best prices!
Other documents randomly have
different content
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookmass.com