RESTful Java Patterns and Best Practices

Learn best practices to efficiently build scalable, reliable, and maintainable high performance RESTful services

RESTful Java Patterns and Best Practices

Bhakti Mehta

Learn best practices to efficiently build scalable, reliable, and maintainable high performance RESTful services
Mapt Subscription
FREE
$29.99/m after trial
eBook
$11.90
RRP $16.99
Save 29%
Print + eBook
$27.99
RRP $27.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$11.90
$27.99
$29.99p/m after trial
RRP $16.99
RRP $27.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783287963
Paperback152 pages

Book Description

The convergence of social networking, cloud computing, and the era of mobile applications has created a generation of emerging technologies that allow different networked devices to communicate with each other over the Internet with REST. REST has the benefits of being stateless; easing scalability, visibility, and reliability; and being platform and language agnostic.

This book is a practical, hands-on guide that provides you with clear and pragmatic information to take advantage of the real power of RESTful services and gives you a good foundation for using them in your applications. By comparing APIs from platforms such as Facebook, Twitter, GitHub, and PayPal, the book teaches a range of exciting capabilities with RESTful services and explores the infinite possibilities by using the diverse building blocks and tips covered in various chapters.

By the end of the book, you will be able to successfully use the concepts explained to design and implement applications based on best practices for RESTful services.

Table of Contents

Chapter 1: REST – Where It Begins
Introduction to REST
The Richardson Maturity Model
Safety and idempotence
Design principles for building RESTful services
Best practices when designing resources
Recommended reading
Summary
Chapter 2: Resource Design
REST response patterns
Content negotiation
Entity providers and different representations
API versioning
Response codes and REST patterns
Recommended reading
Summary
Chapter 3: Security and Traceability
Logging REST APIs
Validating RESTful services
Error handling with RESTful services
Authentication and authorization
REST architecture components
Recommended reading
Summary
Chapter 4: Designing for Performance
Caching principles
Asynchronous and long-running jobs in REST
Asynchronous resources best practices
HTTP PATCH and partial updates
JSON Patch
Recommended reading
Summary
Chapter 5: Advanced Design Principles
Rate-limiting patterns
Response pagination
Internationalization and localization
Miscellaneous topics
Recommended reading
Summary
Chapter 6: Emerging Standards and the Future of REST
Real-time APIs
Polling
WebHooks
Additional real-time API supporters
Comparisons between WebHooks, WebSockets, and server-sent events
REST and Micro Services
Recommended reading
Summary

What You Will Learn

  • Discover how to build RESTful web services using the JAX-RS 2.0 API
  • Understand advanced topics related to OAuth and security with respect to RESTful services
  • Learn about caching techniques, validation, rate-limiting, asynchronous operations, and other best practices to improve application responsiveness
  • Review best practices for pagination, documentation, and the testing of RESTful services
  • Understand HATEOAS as well as the micro services architecture when building applications using RESTful services
  • Learn about the future of REST and evolving standards, and cover case studies on how different enterprises use them
  • Compare and contrast other technologies such as WebHooks, WebSockets, and Server-Sent Events for delivering real-time data to clients

Authors

Table of Contents

Chapter 1: REST – Where It Begins
Introduction to REST
The Richardson Maturity Model
Safety and idempotence
Design principles for building RESTful services
Best practices when designing resources
Recommended reading
Summary
Chapter 2: Resource Design
REST response patterns
Content negotiation
Entity providers and different representations
API versioning
Response codes and REST patterns
Recommended reading
Summary
Chapter 3: Security and Traceability
Logging REST APIs
Validating RESTful services
Error handling with RESTful services
Authentication and authorization
REST architecture components
Recommended reading
Summary
Chapter 4: Designing for Performance
Caching principles
Asynchronous and long-running jobs in REST
Asynchronous resources best practices
HTTP PATCH and partial updates
JSON Patch
Recommended reading
Summary
Chapter 5: Advanced Design Principles
Rate-limiting patterns
Response pagination
Internationalization and localization
Miscellaneous topics
Recommended reading
Summary
Chapter 6: Emerging Standards and the Future of REST
Real-time APIs
Polling
WebHooks
Additional real-time API supporters
Comparisons between WebHooks, WebSockets, and server-sent events
REST and Micro Services
Recommended reading
Summary

Book Details

ISBN 139781783287963
Paperback152 pages
Read More

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Java EE 7 Developer Handbook Book Cover
Java EE 7 Developer Handbook
$ 35.99
$ 25.20
AngularJS UI Development Book Cover
AngularJS UI Development
$ 26.99
$ 18.90