Presentation: Servlet vs Reactive: Choosing the Right Stack

Track: Evolving Java

Location: Seacliff ABC

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

.

Tracks

  • 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.

  • 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.

  • 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. 

  • 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?

  • The Whole Engineer

    Success as an engineer is more than writing code. Hear inward looking thoughts on inclusion, attitude, leadership, remote working, and not becoming the brilliant jerk.

  • Evolving Java

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

  • 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

  • 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.

  • 21st Century Languages

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

  • Modern CS in the Real World

    Applied trends in Computer Science that are likely to affect Software Engineers today. Topics include category theory, crypto, CRDT's, logic-based automated reasoning, and more.

  • 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