Learning Ratpack. Simple, Lean, and Powerful Web Applications - Helion
ISBN: 978-14-919-2161-6
stron: 368, Format: ebook
Data wydania: 2016-06-01
Księgarnia: Helion
Cena książki: 160,65 zł (poprzednio: 186,80 zł)
Oszczędzasz: 14% (-26,15 zł)
Build robust, highly scalable reactive web applications with Ratpack, the lightweight JVM framework. With this practical guide, you’ll discover how asynchronous applications differ from more traditional thread-per-request systems—and how you can reap the benefits of complex non-blocking through an API that makes the effort easy to understand and adopt.
Author Dan Woods—a member of the Ratpack core team—provides a progressively in-depth tour of Ratpack and its capabilities, from basic concepts to tools and strategies to help you construct fast, test-driven applications in a semantic and expressive way. Ideal for Java web developers familiar with Grails or Spring, this book is applicable to all versions of Ratpack 1.x.
- Configure your applications and servers to accommodate the cloud
- Use Ratpack testing structures on both new and legacy applications
- Add advanced capabilities, such as component binding, with modules
- Explore Ratpack’s static content generation and serving mechanisms
- Provide a guaranteed execution order to asynchronous processing
- Model data and the data access layer to build high-performance, data-driven applications
- Work with reactive and functional programming strategies
- Use distribution techniques that support continuous delivery and other deployment tactics
Osoby które kupowały "Learning Ratpack. Simple, Lean, and Powerful Web Applications", wybierały także:
- Windows Media Center. Domowe centrum rozrywki 66,67 zł, (8,00 zł -88%)
- Przywództwo w świecie VUCA. Jak być skutecznym liderem w niepewnym środowisku 58,64 zł, (12,90 zł -78%)
- Mapa Agile & Scrum. Jak si 57,69 zł, (15,00 zł -74%)
- Sztuka podst 53,46 zł, (13,90 zł -74%)
- Lean dla bystrzaków. Wydanie II 49,62 zł, (12,90 zł -74%)
Spis treści
Learning Ratpack. Simple, Lean, and Powerful Web Applications eBook -- spis treści
- Foreword
- Preface
- Who Is the Target Audience for This Book?
- What Is This Book Not Trying to Accomplish?
- No Breaking Changes!
- Staying in Touch
- Acknowledgments
- 1. Welcome to Ratpack
- Hello, World!
- Running the Example
- Rapid Prototyping
- Handler Chain
- URL Path Bindings
- Prefixed Routes
- Path Tokens
- Request Parameters
- Parsing Request Data
- Content Negotiation in Handlers
- Chapter Summary
- Hello, World!
- 2. Getting Started
- Library Structure
- Project Structure
- Ratpack Gradle Plugin
- Gradle Wrapper
- Hot Reloading
- Lazybones
- Building from a Main Class
- Working with Handlers
- Understanding the Chain API Interactions in Groovy and Java
- Standalone Handlers
- Chapter Summary
- 3. Testing Ratpack Applications
- Spock Test Structure
- Functional Testing
- Bootstrapping Test Data
- Architecting for Improved Testability
- Integration Testing
- Unit Testing
- Unit Testing Standalone Handlers
- Other Testing Scenarios
- Chapter Summary
- 4. Application Configuration
- Configuring with Environment Variables and System Properties
- Configuring with Environment Variables
- Configuration with System Properties
- Nested Configuration Models
- Custom Configuration Source
- Setting Server Configuration
- Chapter Summary
- Configuring with Environment Variables and System Properties
- 5. Ratpack Modules
- Extending Ratpack with Registries
- Google Guice
- BindingsSpec in Groovy
- Using the Guice binder in Ratpack
- BindingsSpec in Groovy
- Framework Modules
- Configurable Modules
- Modular Object Rendering in Ratpack
- Rendering with Content Type
- Rendering JSON Data
- Special Rendering Scenarios
- Chapter Summary
- 6. Serving Web Assets
- Serving Static Content
- Caveats to the FileHandler
- Using FileSystemBinding to Customize Asset Resolution
- Serving Dynamic Content
- Handlebars.js Support
- Thymeleaf Support
- Groovy Markup Templates
- Conditionally Serving Content
- Conditionally Scoping Resources
- Conditionally Serving Assets Based on Request Attributes
- Sending Files from Handlers
- Customizing 404 Behavior
- Cache Control
- Asset Pipeline
- Chapter Summary
- Serving Static Content
- 7. Asynchronous Programming, Promises, and Executions
- Promises: A Better Approach to Async Programming
- Execution Model
- Scheduling Execution Segments for Computation or I/O
- Leveraging Executions on Unmanaged Threads
- Error Handling
- Execution-Wide Error Handling
- Promise Error Handling
- Creating Promises on Your Own
- Promises from Synchronous Calculations
- Promises from Asynchronous Calls
- Chapter Summary
- 8. Data-Driven Web Applications
- Groovy SQL Support
- Connection Pooling with HikariCP Support
- Ratpack and Grails GORM
- Designing Data-Driven Service APIs in Ratpack
- Chapter Summary
- 9. Ratpack and Spring Boot
- Adding Spring Boot to Your Ratpack Project
- Creating a Spring BootBacked Registry
- API Design with Ratpack and Spring
- Other Notes on API Design with Ratpack and Spring
- Known Limitations
- Chapter Summary
- 10. Reactive Programming in Ratpack
- Overview of Reactive Programming
- Promise as a Reactive Data Structure
- Transforming Data with Promises
- Filtering Data with Promises
- Composing Data with Promises
- Reactive Streams
- Publishers and bindExec
- RxJava
- Parallel Processing Using RxJava
- Further Reading on RxJava
- Chapter Summary
- 11. Sessions and Security
- Integrating Session Support
- Persisting Objects
- Configuring the SessionModule
- Client-Side Sessions
- Distributed Sessions
- Working with Cookies
- Tuning Cookies
- Expiring Cookies
- Chapter Summary
- Integrating Session Support
- 12. Application Security
- SSL Support
- Basic Authentication
- Custom UsernamePasswordAuthenticator
- Form-Based Authentication
- Data-Driven Form Authentication
- Additional Authentication Means
- Chapter Summary
- 13. Going to Production
- Publishing Metrics
- Enabling Reporting
- Publishing Custom Metrics
- Application Health Checks
- Building Distributions
- Production Checklist
- Chapter Summary
- Publishing Metrics
- Index