SlideShare a Scribd company logo
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 1/37
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 2/37
Breaking REST Chains:
A Fastify & Mercurius Pathway to GraphQL Glory
Luca Del Puppo
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 3/37
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 4/37
Luca Del Puppo
Senior Software Developer
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 5/37
JavaScript enthusiast
TypeScript lover
“Youtuber”
“Writer”
Love sport: running,
hiking
Love animals
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 6/37
Why GraphQL?_
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 7/37
Rest API
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 8/37
Desktop
Browsers
Mobile
Browsers
Other
Browsers
TVs,
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 9/37
SmartWatch
s..
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 10/37
Bill is 22.
He is a Junior Backend
Developer who fights with the
Frontend and Mobile
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 11/37
developers to build a specific
endpoint for every single view,
with just some different fields
but the same logic
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 12/37
Desktop
Browsers
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 13/37
Mobile
Browsers
Other
Browsers
TVs,
SmartWatch
s..
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 14/37
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 15/37
Schema
Queries
Mutations
Subscriptions
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 16/37
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 17/37
You can scale your server "easily"_
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 18/37
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 19/37
But remember
every layer is a cost
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 20/37
Why Mercurius?_
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 21/37
is a high-performance GraphQL adapter for the web
framework
It has many core features and plugins for building world-class
production-ready applications
It supports advanced features out of the box, such as
and Subscriptions
It's entirely Open Source and made available under the MIT license
Fantastic community
Mercurius Fastify
Apollo
Federation specifications
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 22/37
Caching of query parsing and validation
Automatic loader integration to avoid the N+1 problem
Just-In-Time compiler via graphql-jit
Subscriptions
Federation support
Federated subscriptions support
Gateway implementation, including Subscriptions
Batched query support
Customizable persisted queries
Core features_
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 23/37
Today recipe_
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 24/37
. Build a GraphQL server with Mercurius Fastify and JavaScript
2. Convert it to TypeScript
3. Resolve 1+N problem
4. Add Custom Directives or Validations
5. Add Authentication
6. Working with Federation
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 25/37
Let's get our hands dirty_
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 26/37
Conclusion_
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 27/37
Don't hate REST API
Build one use from everyone
Build with Mercurius is a piece of cake
Don't forget, using Mercurius all the Fastify's benefits are there with
you
Be careful with the layers in your Applications
Give the right power to your Frontend Developers
Don't forget to monitor your server
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 28/37
About this presentations_
Slides
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 29/37
Code
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 30/37
Resources to read_
Fastify:
Mercurius:
Nearform Blog:
Backend Caffe:
https://fastify.dev/
https://mercurius.dev/
https://nearform.hashnode.dev/
https://backend.cafe/
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 31/37
Resources to watch_
Nearform:
Adventures in Nodeland:
https://www.youtube.com/@Nearform​
https://www.youtube.com/@adventuresinnodeland
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 32/37
Book_
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 33/37
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 34/37
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 35/37
Luca Del Puppo
@puppo92
Luca Del Puppo
Puppo_92
@puppo
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 36/37
We are hiring
23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory
https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 37/37
Thank you!_
Speaker notes

More Related Content

PDF
apidays LIVE Paris - GraphQL meshes by Jens Neuse
PDF
Graphql
PDF
apidays Paris 2022 - Of graphQL, DX friction, and surgical monolithectomy, Fr...
PDF
Introduction to GraphQL
PDF
Testing and Developing GraphQL APIs
PDF
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
PPTX
GraphQL.pptx
PPTX
GraphQL.pptx
apidays LIVE Paris - GraphQL meshes by Jens Neuse
Graphql
apidays Paris 2022 - Of graphQL, DX friction, and surgical monolithectomy, Fr...
Introduction to GraphQL
Testing and Developing GraphQL APIs
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
GraphQL.pptx
GraphQL.pptx

Similar to Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf (20)

PPTX
APIdays Paris 2019 - Delivering Exceptional User Experience with REST and Gra...
PPTX
GraphQL - Missing Link In REST
PPTX
Taking Control of your Data with GraphQL
PDF
GraphQL - A love story
PDF
codersera_com (1).pdf
PDF
GraphQL across the stack: How everything fits together
PDF
APIdays Paris 2019 - Public GraphQL APIs by Tobias Meixner, BRIKL BV
PDF
PDF
From rest api to graph ql a 10 year journey
PDF
Andrea Baldon, Emanuele Di Saverio - GraphQL for Native Apps: the MyAXA case ...
PDF
Introduction to GraphQL (or How I Learned to Stop Worrying about REST APIs)
PDF
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
PDF
GraphQL and/or REST
PDF
GraphQL Server - Single point of opportunities
PDF
GraphQL over REST at Reactathon 2018
PDF
DEVOXX UK 2018 - GraphQL as an alternative approach to REST
PDF
All you need to know about GraphQL.pdf
PDF
LeanIX GraphQL Lessons Learned - CodeTalks 2017
PDF
GraphQL for Native Apps
PDF
GraphQL in an Age of REST
APIdays Paris 2019 - Delivering Exceptional User Experience with REST and Gra...
GraphQL - Missing Link In REST
Taking Control of your Data with GraphQL
GraphQL - A love story
codersera_com (1).pdf
GraphQL across the stack: How everything fits together
APIdays Paris 2019 - Public GraphQL APIs by Tobias Meixner, BRIKL BV
From rest api to graph ql a 10 year journey
Andrea Baldon, Emanuele Di Saverio - GraphQL for Native Apps: the MyAXA case ...
Introduction to GraphQL (or How I Learned to Stop Worrying about REST APIs)
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
GraphQL and/or REST
GraphQL Server - Single point of opportunities
GraphQL over REST at Reactathon 2018
DEVOXX UK 2018 - GraphQL as an alternative approach to REST
All you need to know about GraphQL.pdf
LeanIX GraphQL Lessons Learned - CodeTalks 2017
GraphQL for Native Apps
GraphQL in an Age of REST
Ad

More from Commit University (20)

PDF
Accessibilità ed equità digitale: un impegno, non una scelta
PDF
GitHub Copilot:vediamo chi comanda - Commit University.pdf
PDF
Contract Driven Development - Branch 2024.pdf
PPTX
Cybersecurity & AI: Illusioni e Speranze
PDF
Migliorare la Developer Experience in un mondo Cloud Native
PPTX
Scopri come sfruttare la potenza della Hybrid RAG
PDF
Introduzione a AWS Forecast e SageMaker DeepAR: Prevedere la Domanda con il M...
PDF
Oltre l'hype: vulnerabilità e limiti dell'intelligenza artificiale.pdf
PPTX
Alla scoperta dei Vector Database e dei RAG
PDF
Nell’iperspazio con Rocket: il Framework Web di Rust!
PDF
Crea il tuo assistente AI con lo Stregatto (open source python framework)
PDF
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
PDF
Slide-10years.pdf
PDF
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
PDF
Vue.js slots.pdf
PPTX
Commit - Qwik il framework che ti stupirà.pptx
PPTX
Sviluppare da zero una Angular Web App per la PA
PDF
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
PDF
Prisma the ORM that node was waiting for
PDF
Decision-making for Software Development Teams - Commit University
Accessibilità ed equità digitale: un impegno, non una scelta
GitHub Copilot:vediamo chi comanda - Commit University.pdf
Contract Driven Development - Branch 2024.pdf
Cybersecurity & AI: Illusioni e Speranze
Migliorare la Developer Experience in un mondo Cloud Native
Scopri come sfruttare la potenza della Hybrid RAG
Introduzione a AWS Forecast e SageMaker DeepAR: Prevedere la Domanda con il M...
Oltre l'hype: vulnerabilità e limiti dell'intelligenza artificiale.pdf
Alla scoperta dei Vector Database e dei RAG
Nell’iperspazio con Rocket: il Framework Web di Rust!
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
Slide-10years.pdf
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
Vue.js slots.pdf
Commit - Qwik il framework che ti stupirà.pptx
Sviluppare da zero una Angular Web App per la PA
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Prisma the ORM that node was waiting for
Decision-making for Software Development Teams - Commit University
Ad

Recently uploaded (20)

PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced IT Governance
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Approach and Philosophy of On baking technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
cuic standard and advanced reporting.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced IT Governance
MYSQL Presentation for SQL database connectivity
Per capita expenditure prediction using model stacking based on satellite ima...
Approach and Philosophy of On baking technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
cuic standard and advanced reporting.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Empathic Computing: Creating Shared Understanding
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Understanding_Digital_Forensics_Presentation.pptx
Spectral efficient network and resource selection model in 5G networks
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Chapter 3 Spatial Domain Image Processing.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto

Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf

  • 1. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 1/37
  • 2. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 2/37 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory Luca Del Puppo
  • 3. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 3/37
  • 4. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 4/37 Luca Del Puppo Senior Software Developer
  • 5. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 5/37 JavaScript enthusiast TypeScript lover “Youtuber” “Writer” Love sport: running, hiking Love animals
  • 6. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 6/37 Why GraphQL?_
  • 7. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 7/37 Rest API
  • 8. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 8/37 Desktop Browsers Mobile Browsers Other Browsers TVs,
  • 9. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 9/37 SmartWatch s..
  • 10. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 10/37 Bill is 22. He is a Junior Backend Developer who fights with the Frontend and Mobile
  • 11. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 11/37 developers to build a specific endpoint for every single view, with just some different fields but the same logic
  • 12. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 12/37 Desktop Browsers
  • 13. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 13/37 Mobile Browsers Other Browsers TVs, SmartWatch s..
  • 14. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 14/37
  • 15. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 15/37 Schema Queries Mutations Subscriptions
  • 16. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 16/37
  • 17. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 17/37 You can scale your server "easily"_
  • 18. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 18/37
  • 19. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 19/37 But remember every layer is a cost
  • 20. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 20/37 Why Mercurius?_
  • 21. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 21/37 is a high-performance GraphQL adapter for the web framework It has many core features and plugins for building world-class production-ready applications It supports advanced features out of the box, such as and Subscriptions It's entirely Open Source and made available under the MIT license Fantastic community Mercurius Fastify Apollo Federation specifications
  • 22. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 22/37 Caching of query parsing and validation Automatic loader integration to avoid the N+1 problem Just-In-Time compiler via graphql-jit Subscriptions Federation support Federated subscriptions support Gateway implementation, including Subscriptions Batched query support Customizable persisted queries Core features_
  • 23. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 23/37 Today recipe_
  • 24. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 24/37 . Build a GraphQL server with Mercurius Fastify and JavaScript 2. Convert it to TypeScript 3. Resolve 1+N problem 4. Add Custom Directives or Validations 5. Add Authentication 6. Working with Federation
  • 25. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 25/37 Let's get our hands dirty_
  • 26. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 26/37 Conclusion_
  • 27. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 27/37 Don't hate REST API Build one use from everyone Build with Mercurius is a piece of cake Don't forget, using Mercurius all the Fastify's benefits are there with you Be careful with the layers in your Applications Give the right power to your Frontend Developers Don't forget to monitor your server
  • 28. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 28/37 About this presentations_ Slides
  • 29. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 29/37 Code
  • 30. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 30/37 Resources to read_ Fastify: Mercurius: Nearform Blog: Backend Caffe: https://fastify.dev/ https://mercurius.dev/ https://nearform.hashnode.dev/ https://backend.cafe/
  • 31. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 31/37 Resources to watch_ Nearform: Adventures in Nodeland: https://www.youtube.com/@Nearform​ https://www.youtube.com/@adventuresinnodeland
  • 32. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 32/37 Book_
  • 33. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 33/37
  • 34. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 34/37
  • 35. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 35/37 Luca Del Puppo @puppo92 Luca Del Puppo Puppo_92 @puppo
  • 36. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 36/37 We are hiring
  • 37. 23/02/24, 10:45 Breaking REST Chains: A Fastify & Mercurius Pathway to GraphQL Glory https://slides.com/puppo92/breaking-rest-chains-a-fastify-mercurius-pathway-to-graphql-glory/fullscreen 37/37 Thank you!_ Speaker notes