Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Presentation

RESTful Web API Patterns and Practices Cookbook

Rating
-
Sold
-
Pages
409
Uploaded on
18-07-2024
Written in
2016/2017

"Many organizations today orchestrate and maintain apps that rely on other people''''s services. Software designers, developers, and architects in those companies often work to coordinate and maintain apps based on existing microservices, including third-party services that run outside their ecosystem. This cookbook provides proven recipes to help you get those many disparate parts to work together in your network. Author Mike Amundsen provides step-by-step solutions for finding, connecting, and maintaining applications designed and built by people outside the organization. Whether you''''re working on human-centric mobile apps or creating high-powered machine-to-machine solutions, this guide shows you the rules, routines, commands, and protocols—the glue—that integrates individual microservices so they can function together in a safe, scalable, and reliable way. Design and build individual microservices that can successfully interact on the open web Increase interoperability by designing services that share a common understanding Build client applications that can adapt to evolving services without breaking Create resilient and reliable microservices that support peer-to-peer interactions on the web Use web-based service registries to support runtime ""find-and-bind"" operations that manage external dependencies in real time Implement stable workflows to accomplish complex, multiservice tasks consistently"

Show more Read less
Institution
Course

Content preview

,Part I: Understanding RESTful Hypermedia

The opening chapters (Chapters 1 and 2) describe the foundation that underpins all the recipes in
the book. They are a mix of history, philosophy, and pragmatic thinking. These are the ideas and
principles that reflect the lessons I’ve learned over my years of designing, building, and supporting
network software applications running on the web.

Chapter 1, Introducing RESTful Web APIs

This is a general overview of the rationale behind the selected recipes in this book. It
includes a section answering the question “what are RESTful web APIs (RWAs)?,” reasons
hypermedia plays such an important role in the creation of RWAs, and some base-level
shared principles that guide the selection and explanation of the recipes in this book. This
chapter “sets the table” for all the material that follows.

Chapter 2, Thinking and Designing in Hypermedia

This chapter explores the background of hypermedia-driven distributed systems that form
the foundation for web applications. Each recipe collection covered in Part II (design,
clients, services, data, and workflow) is explored with a mix of history, philosophy, and
pragmatic thinking. Reading this chapter will help you understand some of the key design
ideas and technical bases for all the patterns and practices outlined in the rest of the book.

Part II: Hypermedia Recipe Catalog

Part II holds all the recipes I’ve selected for this volume. You’ll notice that most of the chapters
start with the word “hypermedia.” This should give you a clue to the overall approach we’ll be
taking throughout the book.

Chapter 3, Hypermedia Design

Reliable and resilient services start with thoughtful designs. This chapter covers a set of
common challenges you’ll need to deal with before you even get to the level of coding and
releasing your services. This chapter will be particularly helpful to architects as well as
service designers, and helps set the tone for the various recipes that follow.

Chapter 4, Hypermedia Clients

This chapter focuses on challenges you’ll face when creating service/API consumer
applications. I made a point of discussing client apps before talking about recipes for
service interfaces themselves. A common approach for creating flexible and resilient
service consumers is necessary for any program that plans on creating a stable and reliable
platform for open services that can live on the web as well as within an enterprise.

Chapter 5, Hypermedia Services

, With a solid foundation of design principles and properly architected client applications, it
can be easier to build and release stable service producers that can be safely updated over
time without breaking existing API consumers. This set of recipes focuses not only on
principles of solid service interface design but also on the importance of supporting runtime
error recovery and reliability patterns to make sure your solutions stay up and running even
when parts of your system experience failures.

Chapter 6, Distributed Data

This chapter focuses on the challenges of supporting persisted data in an online, distributed
environment. Most of the recipes here are aimed at improving the responsiveness,
scalability, and reliability of your data services by ensuring data integrity—even when
changing internal data models and implementations at runtime.

Chapter 7, Hypermedia Workflow

The last set of recipes focuses on creating and managing service workflow on the web. The
key challenge to face for open services workflow is to create a safe and reliable set of
solutions for enlisting multiple unrelated services into a single, resilient workflow to solve
a problem none of the individual services knows anything about. I saved this chapter for
last since it relies on many of the recipes covered earlier in the book.

Chapter 8, Closing Remarks

The final chapter is a short wrap-up of the material as well as a “call-forward” to help you
decide on your own “next steps” as you set out to apply these recipes to your environment.

Appendices

There are a series of appendices for the book that you can use as additional support materials.
These are sometimes referred to in the text but can also be treated as stand-alone references.

Appendix A, Guiding Principles

This appendix is a short “motivational poster” version of the single guiding principle
behind the selected recipes, as well as some secondary principles used to shape the
description and, ultimately, the implementation of these patterns in general.

Appendix B, Additional Reading

Throughout the book, I’ll be recommending additional reading, quoting from books and
articles, and calling out presentations and videos that are the source of much of the advice
in the book. This appendix contains a self-standing list of reading and viewing materials
that you can use as references and a guide when working through the recipes.

Appendix C, Related Standards

, Since the goal of this book is to create services that can successfully live “on the web,” the
recipes depend upon a number of important open web standards. This appendix contains a
list of the related standards documents.

Appendix D, Using the HyperCLI

In several places in the book, I reference a command-line interface tool called HyperCLI.
You can use this tool to interact with hypermedia-aware services. This appendix provides
a short introduction to the tool and some pointers to other online resources on how to take
advantage of HyperCLI and HyperLang.

What’s Not Covered
As a book of recipes, this text is not suited for teaching the reader how to implement the patterns
and ideas listed here. If you are new to any of the pillars upon which this book is built, you’ll want
to look to other sources for assistance.

The following books are some that I have used in training and consulting engagements on topics
not covered in detail in this book:

HTTP protocol

Most of the recipes in this book were developed for HTTP protocol implementations. For
more on the power and challenges of HTTP, I recommend the HTTP Developer’s
Handbook by Chris Shiflett (Sams). Shiflett’s text has been a great help to me in learning
the inside details of the HTTP protocol. Published in 2003, it is still a valuable book that I
highly recommend.

API design

For details on designing APIs for distributed services, I suggest readers check out
my Building Hypermedia APIs with HTML5 and Node (O’Reilly). For those looking for a
book focused on coding APIs, my more recent book, Design and Build Great Web
APIs (Pragmatic Bookshelf), offers a detailed hands-on guide to the full API lifecycle.

API clients

The work of coding API/service clients is a skill unto itself. For an extended look at the
process of creating flexible hypermedia-driven client applications, I refer readers to
my RESTful Web Clients (O’Reilly).

Web APIs

For details on creating web APIs themselves, I encourage readers to check out the
book RESTful Web APIs (O’Reilly), which I coauthored with Leonard Richardson, and my
book Design and Build Great Web APIs (O’Reilly). Other books I keep close at hand

Written for

Course

Document information

Uploaded on
July 18, 2024
Number of pages
409
Written in
2016/2017
Type
PRESENTATION
Person
Unknown

Subjects

$3.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
RobertCuong

Get to know the seller

Seller avatar
RobertCuong Telecommunication
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
225
Last sold
-
GPON and WiFi

+ SDH solution based on Fujitsu/Alcatel/Huawei devices in deployment and troubleshoot + Switching and Routing network fundamental and advance + GPON solution with deep knowledge of PLOAM/OMCI, activation procedure. Analysis of Private/Public OMCI + WiFi solution with WiFi Management/Control/Data. WiFi bandsteering, WiFi mesh, and WiFi 6, 6E, 7, ...

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions