Netty in Action
Norman Maurer, Marvin Wolfthal
- 296 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Netty in Action
Norman Maurer, Marvin Wolfthal
About This Book
Summary Netty in Action introduces the Netty framework and shows you how to incorporate it into your Java network applications. You'll learn to write highly scalable applications without the need to dive into the low-level non-blocking APIs at the core of Java.Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Netty is a Java-based networking framework that manages complex networking, multithreading, and concurrency for your applications. And Netty hides the boilerplate and low-level code, keeping your business logic separate and easier to reuse. With Netty, you get an easy-to-use API, leaving you free to focus on what's unique to your application. About the Book Netty in Action introduces the Netty framework and shows you how to incorporate it into your Java network applications. You will discover how to write highly scalable applications without getting into low-level APIs. The book teaches you to think in an asynchronous way as you work through its many hands-on examples and helps you master the best practices of building large-scale network apps. What's Inside
- Netty from the ground up
- Asynchronous, event-driven programming
- Implementing services using different protocols
- Covers Netty 4.x
About the Reader This book assumes readers are comfortable with Java and basic network architecture. About the Authors Norman Maurer is a senior software engineer at Apple and a core developer of Netty. Marvin Wolfthal is a Dell Services consultant who has implemented mission-critical enterprise systems using Netty. Table of Contents
PART 1 NETTY CONCEPTS AND ARCHITECTURE
- Netty-asynchronous and event-driven
- Your first Netty application
- Netty components and design
- Transports
- ByteBuf
- ChannelHandler and ChannelPipeline
- EventLoop and threading model
- Bootstrapping
- Unit testing
- PART 2 CODECS
- The codec framework
- Provided ChannelHandlers and codecs
- PART 3 NETWORK PROTOCOLS
- WebSocket
- Broadcasting events with UDP
- PART 4 CASE STUDIES
- Case studies, part 1
- Case studies, part 2
Frequently asked questions
Information
Part 1. Netty concepts and architecture
- You donât have to be a networking expert to build applications with Netty.
- Using Netty is much easier than using the underlying Java APIs directly.
- Netty promotes good design practices, such as keeping your application logic decoupled from the network layer.
Chapter 1. Nettyâasynchronous and event-driven
- Networking in Java
- Introducing Netty
- Nettyâs core components
- Separation of concerns (decoupling business and network logic)
- Modularity and reusability
- Testability as a first-order requirement