chapter 2- part2 Flashcards
(9 cards)
Qu’est-ce qu’une application Stateless?
A stateless app doesn’t save any data about you between requests. Each request is like a new one—nothing is saved. (Ex: REST API)
C’est quoi une application Stateful?
A stateful app remembers you. It saves info like your cart, your login… (Ex: session, shopping cart)
Pourquoi préférer Stateless pour les APIs?
Because it’s simpler, faster, more scalable. Each request is independent!
Qu’est-ce que la programmation orientée objet (OOP)?
It’s about using objects and classes—like characters in a game, each has its own data and actions.
Qu’est-ce que la programmation fonctionnelle?
It’s like math functions: no side effects, pure, simple functions that just take input and give output.
Qu’est-ce que l’asynchrone?
It’s doing multiple things at the same time—like sending emails and serving pages while waiting for a big task to finish.
C’est quoi la gestion des erreurs?
It’s catching and handling errors (like 404, 500) to avoid crashes and give good responses.
C’est quoi le monitoring?
It’s tracking your app’s health—checking logs, errors, performance, and alerts when stuff breaks.
Donne un exemple d’outils de monitoring.
Tools like Sentry, New Relic, Prometheus, or ELK.