Presentation: Servlet vs Reactive: Choosing the Right Stack

Track: Evolving Java

Location: Ballroom BC

Duration: 2:55pm - 3:45pm

Day of week: Tuesday

Level: Intermediate

Persona: Backend Developer, Developer, JVM

Abstract

When Netflix upgraded their main gateway, serving 83 million users, from Servlet based, blocking Zuul 1 to the Netty based, non-blocking Zuul 2, the results were interesting and nuanced with benefits and trade-offs. Spring Framework 5 provides a similar choice with Servlet based Spring MVC and the new reactive, web framework called Spring WebFlux.

How do you make sense of this choice? The key is to understand the trade-offs and pick the right stack for the job at hand. Of course you also need understand differences in the execution models and the impact on the programming model you use.

In this session we'll discuss these questions and also use demo code.

Interview

Question: 
What’s the motivation for this talk?
Answer: 

Spring Framework 5 provides two web stacks. One is a classic, Servlet stack with blocking I/O that most Java enterprise applications use today. The other is a Reactive stack that's built on an event-loop, non-blocking execution model and can handle high concurrency with less hardware resources. The motivation for this talk is to explain the differences in the execution models, demonstrate through demo code, and provide insights on trade-offs and making choices.

Question: 
What do you hope someone will leave this talk with?
Answer: 

A concrete understanding of how the Reactive stack is different from the classic Servlet stack, what benefits it provides, and how the developer experience might change.

Question: 
How you you describe the persona and level of the target audience?
Answer: 

Anyone developing server-side Java applications, especially those with existing Servlet applications, would benefit by learning about this major shift that's taking place. The talk doesn't make too many assumptions beyond that. There are no specific skills or expertise level required.

Speaker: Rossen Stoyanchev

Spring Framework Committer @Pivotal

Rossen is a Spring Framework committer at Pivotal in NYC. He is deeply involved in the Spring 5 effort to enable reactive programming models starting with a reactive foundation for web applications and extending to data, messaging, and more.

Find Rossen Stoyanchev at

Similar Talks

Technical Program Manager @Questback
Engineering Leader at Large (formerly Director of Operations Engineering @Netflix)
Senior Manager, Data Science @Salesforce

.

Tracks

  • 21st Century Languages

    Compile to Native, Microservices, Machine learning... tailor-made languages solving modern challenges, featuring use cases around Go, Rust, C#, and Elm.

  • Architectures You've Always Wondered About

    Architectural practices from the world's most well-known properties, featuring startups, massive scale, evolving architectures, and software tools used by nearly all of us.

  • Beyond Being an Individual Contributor

    Beyond being an individual contributor. Building and Evolving managers and tech leadership.

  • DevOps: You Build It, You Run It

    Pushing DevOps beyond adoption into cultural change. Hear about designing resilience, managing alerting, CI/CD lessons, & security. Features lessons from open source, Linkedin, Netflix, Financial Times, & more. 

  • Performance Mythbusting

    Real world, applied performance proofs across stacks. Hear performance consideratiosn for .NET, Python, & Java. Learn performance use cases with OpenJ9, Instagram, and Netflix. 

  • The Practice & Frontiers of AI

    Learn about machine learning in practice and on the horizon. Learn about ML at Quora, Uber's Michelangelo, ML workflow with Netflix Meson and topics on Bots, Conversational interfaces, automation, and deployment practices in the space.

  • Going Serverless

    Learn about the state of Serverless & how to successfully leverage it! Lessons learned in the track hit on security, scalability, IoT, and offer warnings to watch out for.

  • Microservices: Patterns and Practices

    Stories of success and failure building modern Microservices, including event sourcing, reactive, decomposition, & more.

  • Evolving Java

    Java continues to evolve & change. Track covers Spring 5, async, Kotlin, serverless, the 6-month cadence plans, & AI/ML use cases.

  • The Art of Chaos Engineering

    Failure is going to happen - Are you ready? Chaos engineering is an emerging discipline - What is the state of the art?

  • Security: Attacking and Defending

    Offense and defensive security evolution that application developers should know about including SGX Enclaves, effects of AI, software exploitation techniques, & crowd defense

  • Stream Processing In The Modern Age

    Compelling applications of stream processing using Flink, Beam, Spark, Strymon & recent advances in the field, including Custom Windowing, Stateful Streaming, SQL over Streams.  

Conference for Professional Software Developers