RESTful Rails Development
Building Open Applications and Services
Samenvatting
The Web is slowly but surely changing from a model in which a human reader browses content on web pages to a model in which services and clients (not necessarily humans) exchange information. And because of this, author Silvia Puglisi explains, it makes more sense to build platforms instead of just products or applications. Platforms are like ecosystems interconnecting different applications, services, users, developers, and partners, and offer many benefits.
In this book, you'll learn how to design and develop Representational State Transfer (REST) platforms in Rails. You'll begin with an introduction to Ruby on Rails, and then move quickly through new concepts. At the end of each chapter, you'll have learned something new about building and organically extending a multi-service platform spanning different devices—and will have had some fun in the process. By the end of the book you'll know how to build an architecture composed of different services accessing shared resources through a set of collaborating APIs and applications.
- Explore the basics of REST and HTTP, including REST architecture and the role of hypermedia
- Get to know Rails and Ruby on Rails
- Learn about API development and create an API
- Take a thorough look at REST, including Asynchronous REST and testing RESTful services
- Work with data streams as you map them onto an application UI and integrate external APIs in your application
- Learn about device-independent development
- Use data analytics to recognize important events, develop key metrics, and track them
- Explore various tools you can use to build your own data analytic platform
- Learn how to scale a Rails application successfully
- Examine privacy and security issues and the implications of handling and collecting user data
Specificaties
Inhoudsopgave
1. From Hypertext to Hyperdata
-REST and HTTP
-RESTful Programming and Hypermedia
-Wrapping Up
2. Getting Started with Ruby on Rails
-Getting to Know Ruby on Rails
-Setting Up Ruby and Rails
-The Architecture of a Rails App
-Wrapping Up
3. First Adventures in API Design
-Application Programming Interfaces
-Dos of API Development
-Why You Should Use Rails to Build APIs
-The WikiCat API
-Wrapping Up
4. The REST of the World
-Life Is CRUD
-RESTful Rails
-HTTP Semantics
-Wrapping Up
5. Designing APIs in RoR
-Hypermedia and Adaptable APIs
-REST Patterns
-Resource-Oriented Thinking
-HATEOAS
-The WikiCat Hypermedia API
-Wrapping Up
6. Asynchronous REST
-Asynchronous RESTful Operations
-Asynchronous REST in Rails
-Callbacks
-WebSockets
-Wrapping Up
7. Testing RESTful Services
-Testing in Rails
-Mocks, Stubs, Doubles, and Dummies
-Testing RESTful Services
-Wrapping Up
8. Microservices and Microapplications
-Basics of SOA and Distributed Systems Design
-Microservices Paradigms
-The Evolutionary Approach
-Thinking in Terms of Microapplications and Services
-The Thematic Walks API
-Wrapping Up
9. Mapping Data Streams onto an Application UI
-Wanderings in Frontend Land
-Rendering and Templating in Rails
-Ember.js: A Framework for Creating Ambitious Web Applications
-Planning the Application
-Modeling Data
-Routing in Ember.js
-Defining the Templates
-Writing a Component
-Exploring Walks Through Categories
-Wrapping Up
10. Deploying an API
-How Is an API Deployed?
-Deploying the Wikipin API on OpenShift
-Meet Jenkins
-Wrapping Up
11. Managing an App Ecosystem
-API Management
-Managing Your Community’s Happiness
-Data Management and Analytics
-Wrapping Up
12. Consuming Data Streams: Integrating External APIs in Your Application
-Creating a Weather Service
-If This Then Something
-Adhering to the Terms of Service
-Asynchronous REST
-Wrapping Up
13. Device-Independent Development
-Web Development Is a Broad Term
-Streaming Data into a Firefox OS App
-Developing an Internet of Things App
-Wrapping Up
14. Data Analytics
-Data Comes from Everywhere
-Monolithic Versus Microapplication Architectures
-Monitor, Optimize, and Enhance
-Actions and Events
-Wrapping Up
15. Scaling Gracefully
-Scaling Rails
-Creating a Middleware for Different APIs to Communicate
-Configuring a Reverse Proxy with Nginx
-Meet Lua
-Bundle Things Together
-Caching
-Scaling Is Not Necessarily Difficult and Painful
-Wrapping Up
16. Privacy and Security
-How to Protect User Privacy
-Is My Data Safe?
-Is Rails Secure?
-Conclusions
Appendix A: HTTP Quick Reference
Index
Anderen die dit boek kochten, kochten ook
Rubrieken
- cadeauboeken
- computer en informatica
- economie
- filosofie
- flora en fauna
- geneeskunde
- geschiedenis
- gezondheid
- jeugd
- juridisch
- koken en eten
- kunst en cultuur
- literatuur en romans
- mens en maatschappij
- naslagwerken
- non-fictie informatief/professioneel
- paramedisch
- psychologie
- reizen
- religie
- schoolboeken
- spiritualiteit
- sport, hobby, lifestyle
- thrillers en spanning
- wetenschap en techniek
- woordenboeken en taal