1/67
Flashcards covering key vocabulary related to authentication and database concepts.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Authentication
The process of verifying who a user is.
Authorization
Determines what an authenticated user can do.
JWT (JSON Web Token)
A secure ID card used to identify users across web applications.
Access Token
A temporary token with a short lifespan, used for API requests.
Refresh Token
A long-lived token used to obtain a new access token when the original expires.
Sessions
Stateful method where the server remembers user data.
Cookies
Small pieces of data stored on the user's computer by the browser.
Bcrypt
A one-way function used to hash passwords.
SQL
Structured Query Language; used for databases with strict schema.
NoSQL
A flexible, document-based database format (like MongoDB) for unstructured data.
N+1 Query Problem
An issue that arises when a single query results in multiple subsequent queries to the database.
Joins
A method to combine records from two or more tables in a database.
ACID properties
A set of properties (Atomicity, Consistency, Isolation, Durability) ensuring reliable database transactions.
Vertical Scaling
Increasing the resources of a single server (e.g., more RAM, CPU power) to handle more load.
Horizontal Scaling
Adding more servers to distribute the load; essential for handling large-scale applications.
Load Balancer
A device or software that distributes network or application traffic across multiple servers to ensure no single server is overwhelmed.
Monolith
A software architecture where all components are interconnected and interdependent, making it easy to deploy but hard to scale.
Microservices
An architectural style that structures an application as a collection of small, loosely coupled services, enhancing modularity and scalability.
MVC Pattern (Model-View-Controller)
A software design pattern that separates an application into three main logical components: Model (data), View (UI), and Controller (business logic).
Atomicity
The property ensuring that a transaction is either fully completed or not executed at all; if part of a transaction fails, the entire transaction fails.
Consistency
The principle that a database must always transition from one valid state to another, adhering to all predefined rules and constraints.
Isolation
The ability of concurrent transactions to operate independently without interference, ensuring each transaction's operations remain unaffected by others.
Durability
The guarantee that once a transaction has been committed, it will remain so, even in the event of a system failure.
Indexing
A data structure that improves the speed of data retrieval operations on a database table, enabling quick lookup without scanning rows.
N+1 Query Problem
An inefficiency that occurs when a single query results in multiple subsequent queries, which can be mitigated using Joins or Eager Loading.
One-to-Many Relationship
A type of data relationship where one record in a table is associated with multiple records in another table, such as a user with many posts.
Many-to-Many Relationship
A relationship where multiple records in one table can be associated with multiple records in another table, such as students enrolled in various courses.
Inner Join
A database operation that returns only the rows where there is a match in both tables provided in the query.
Left Join
A database operation that returns all rows from the left table and matched rows from the right table; if there is no match, NULLs are displayed for the right table.
let vs const
Use const by default; use let only if the value will change.
Arrow Functions
A shorter syntax for functions, e.g., () => {}.
Destructuring
Method to pull values out of objects or arrays easily, e.g., const { name } = user.
Components in React
Reusable building blocks of the UI that define how a part of the interface should appear.
Props in React
Data passed down from parent components to child components; they are read-only.
State in React
Data managed inside a component that can change over time, influencing the component's rendering.
Virtual DOM
A lightweight copy of the real DOM that React uses to detect changes efficiently before updating the real DOM.
useState Hook
A Hook that lets functional components manage state.
useEffect Hook
Handles side effects in components, such as data fetching or timers, and runs after the component renders.
useContextHook
Avoids prop drilling by sharing data globally across components.