OS

OpenStem

@openstem · Joined Jul 2026
7420 public items8 groups
Content7420Groups8
Flashcards10 cards
What memory model do Dart isolates use?1 / 10
Each isolate has its own memory heap and event loop and shares no mutable state with other isolates. They communicate only by passing messages over ports, which avoids data races and locks.
Software

Isolates & Concurrency

@openstem
Isolates & Concurrency
Flashcards10 cards
What is the difference between a single-subscription and a broadcast Stream?1 / 10
A single-subscription stream allows only one listener over its lifetime and buffers events until then; a broadcast stream allows many simultaneous listeners and does not buffer for late subscribers.
Software

Streams & Async Generators

@openstem
Streams & Async Generators
Flashcards10 cards
What is the difference between Dart's JIT and AOT compilation?1 / 10
JIT compiles at runtime (used in development for hot reload and fast iteration), while AOT compiles ahead of time to native machine code (used in release builds for fast startup and predictable performance).
Software

VM, AOT/JIT & Performance

@openstem
VM, AOT/JIT & Performance
Flashcards10 cards
What does `FutureBuilder` do?1 / 10
It rebuilds its widget subtree based on the latest snapshot of a Future, exposing connection state, data, and error so you can render loading, success, and failure UIs.
Software

Async & Networking

@openstem
Async & Networking
Flashcards10 cards
What are the three trees Flutter maintains for rendering?1 / 10
The Widget tree (immutable config), the Element tree (mutable instances linking widgets to render objects), and the RenderObject tree (handles layout and painting).
Software

Rendering Pipeline

@openstem
Rendering Pipeline
Flashcards11 cards
What does `export const revalidate = 60` in a page do?1 / 11
It sets an Incremental Static Regeneration interval, so the cached page is regenerated at most once every 60 seconds when requested.
Software

Caching & Revalidation

@openstem
Caching & Revalidation
Flashcards10 cards
Where does Next.js middleware run?1 / 10
It runs before a request is completed — ahead of the matched route — letting you rewrite, redirect, or set headers/cookies before the route handles the request. In Next.js 16 the file/function is renamed from middleware to proxy (proxy.ts / export function proxy()), running on the Node.js runtime; the legacy edge `middleware` name is deprecated.
Software

Middleware, Auth & Deployment

@openstem
Middleware, Auth & Deployment
Flashcards10 cards
How is a TypeORM entity defined?1 / 10
A class annotated with `@Entity` whose properties use column decorators like `@PrimaryGeneratedColumn` and `@Column`, mapping to a table.
Software

Database & TypeORM

@openstem
Database & TypeORM
Flashcards10 cards
What library does Nest commonly use for authentication strategies?1 / 10
Passport, integrated via `@nestjs/passport`, with strategies like `passport-jwt` and `passport-local` wrapped as guards.
Software

Authentication & Middleware

@openstem
Authentication & Middleware
Flashcards10 cards
When should you embed related data versus reference it?1 / 10
Embed when data is accessed together and bounded in size; reference when data is large, shared, or grows unbounded.
Software

Schema Design & Modeling

@openstem
Schema Design & Modeling
Flashcards10 cards
What is a MongoDB replica set?1 / 10
A group of mongod nodes maintaining the same data: one primary accepts writes and secondaries replicate the oplog for redundancy and failover.
Software

Replication & Transactions

@openstem
Replication & Transactions
Flashcards10 cards
What does MVCC stand for and provide?1 / 10
Multi-Version Concurrency Control: readers see a consistent snapshot without blocking writers, and writers don't block readers.
Software

Transactions & MVCC

@openstem
Transactions & MVCC
Flashcards10 cards
What information does EXPLAIN ANALYZE give that plain EXPLAIN does not?1 / 10
EXPLAIN ANALYZE actually executes the query and reports actual rows returned, actual time per node, and loop counts, compared to EXPLAIN's estimate-only plan.
Software

Performance Tuning

@openstem
Performance Tuning
Flashcards10 cards
What is AWS Lambda?1 / 10
Lambda is a serverless compute service that runs your function code in response to events without you provisioning or managing servers, billing per request and execution duration.
Software

Serverless & Lambda

@openstem
Serverless & Lambda
Flashcards10 cards
Which S3 storage class is cheapest for rarely accessed archival data with retrieval delays acceptable?1 / 10
S3 Glacier Deep Archive offers the lowest storage cost for long-term archives where retrieval times of hours are acceptable.
Software

Storage & Content Delivery

@openstem
Storage & Content Delivery
Flashcards10 cards
What kind of system is BigQuery?1 / 10
BigQuery is a serverless, columnar, fully managed data warehouse that separates storage from compute and scales queries automatically.
Software

Data & Analytics (BigQuery)

@openstem
Data & Analytics (BigQuery)
Flashcards10 cards
In GKE, what is the difference between Standard and Autopilot modes?1 / 10
Standard mode lets you manage and pay for nodes directly. Autopilot manages nodes for you, billing per-Pod resource requests, reducing operational overhead and enforcing best-practice defaults.
Software

Architecture & Scale

@openstem
Architecture & Scale
Flashcards10 cards
What is the core Terraform workflow order?1 / 10
terraform init (install providers/backend), then plan (preview changes), then apply (execute), with destroy to tear down.
Software

Workflows & Best Practices

@openstem
Workflows & Best Practices
Flashcards10 cards
What is the main risk of a single monolithic Terraform state for a large org?1 / 10
Everything shares one lock and blast radius: plans get slow, a single apply can touch unrelated systems, and concurrent work is serialized. Split state by service/layer instead.
Software

Advanced State & Scaling

@openstem
Advanced State & Scaling
Flashcards9 cards
What does it mean for an HTTP method to be idempotent?1 / 9
Calling it once or many times with the same request produces the same server state as calling it once. GET, PUT, DELETE, HEAD, and OPTIONS are idempotent; POST is not.
Software

API Design & REST

@openstem
API Design & REST
Flashcards8 cards
How does the cache-aside (lazy loading) pattern work?1 / 8
The application checks the cache first; on a miss, it reads from the database, then writes the result into the cache before returning it. Subsequent reads for the same key hit the cache until it expires or is evicted.
Software

Caching Strategies

@openstem
Caching Strategies
Flashcards8 cards
What makes a function 'pure'?1 / 8
Its output depends only on its inputs (no reliance on external mutable state), and calling it causes no observable side effects (no I/O, no mutation of arguments or globals).
Software

Functional Programming Concepts

@openstem
Functional Programming Concepts
Flashcards8 cards
How does a typical backtracking regex engine try to match a pattern?1 / 8
It tries alternatives and quantifier repetitions greedily, and when a later part of the pattern fails to match, it backtracks — undoing the most recent choice and trying the next alternative — until a match is found or all options are exhausted.
Software

Regular Expressions & Text Parsing

@openstem
Regular Expressions & Text Parsing
Flashcards8 cards
What is the core difference between a REST endpoint and a GraphQL endpoint?1 / 8
REST exposes many URLs, each returning a fixed shape of data for one resource. GraphQL exposes a single endpoint backed by a typed schema, and the client's query specifies exactly which fields it wants across related types in one request — fixing both over-fetching (unused fields) and under-fetching (needing several round trips to assemble a view).
Software

GraphQL API Design

@openstem
GraphQL API Design
Flashcards8 cards
What is the key difference between a message queue and a pub/sub topic?1 / 8
A queue delivers each message to exactly one consumer among a competing group (work distribution). A pub/sub topic delivers a copy of each message to every subscriber (fan-out/broadcast). Many real systems (Kafka, SNS+SQS) combine both: a topic fans out to several queues, each queue load-balanced across its own consumer group.
Software

Message Queues & Event-Driven Communication

@openstem
Message Queues & Event-Driven Communication
Flashcards10 cards
What is the average-case time complexity of a hash map lookup?1 / 10
O(1) — a good hash function distributes keys uniformly across buckets. Worst case is O(n) when many keys collide into one bucket.
Software

Software · L4 · DS&A — Core Structures

@openstem
Software · L4 · DS&A — Core Structures
Flashcards10 cards
What is a JIT compiler and how does V8 use it?1 / 10
A Just-In-Time compiler compiles JS to native machine code at runtime (not ahead of time). V8 initially interprets with Ignition (the bytecode interpreter), then identifies 'hot' functions and compiles them to optimized native code with TurboFan. This gives JS near-native performance on hot paths.
Software

Engine Internals

@openstem
Engine Internals
Flashcards10 cards
What is a Web Worker and what can it NOT do?1 / 10
A Web Worker runs JS in a background thread, keeping the main thread free. It CANNOT access the DOM, window, or main-thread variables directly. Communication is via `postMessage`/`onmessage` with structured-clone data copying.
Software

Concurrency & Advanced Patterns

@openstem
Concurrency & Advanced Patterns
Flashcards10 cards
What does `strict: true` enable in tsconfig?1 / 10
It enables a suite of strict checks: `strictNullChecks`, `strictFunctionTypes`, `strictBindCallApply`, `strictPropertyInitialization`, `noImplicitAny`, `noImplicitThis`, `alwaysStrict`. Strongly recommended.
Software

Compiler & Config

@openstem
Compiler & Config
Flashcards10 cards
What is a branded type and how do you create one?1 / 10
A branded (nominal) type uses an intersection with a phantom tag to prevent accidental substitution of structurally identical types: `type UserId = string & { readonly _brand: 'UserId' }`. Only created via a factory, not assignable from plain string.
Software

Advanced Patterns

@openstem
Advanced Patterns

We use privacy-friendly product analytics (no session recording, PII masked) to improve OpenStem. Load analytics? Privacy Policy