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

This ebook is included in a Mapt subscription
Bhakti Mehta

Learn best practices to efficiently build scalable, reliable, and maintainable high performance RESTful services
$10.00
$27.99
RRP $16.99
RRP $27.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
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