We use privacy-friendly product analytics (no session recording, PII masked) to improve OpenStem. Load analytics? Privacy Policy
Software: explore STEM content (page 22 of 25) · openstem
Explore STEM Content
Search the community's STEM library — free to study, yours to make your own.
Software
Programming, algorithms and systems on openstem — flashcards, notes, quizzes, sketches and flowcharts shared by the community. Study free, or clone anything into your library.
The Service Mesh As the number of services grows, cross-cutting network concerns — mTLS, retries, timeouts, load balancing, circuit breaking, traffic splitting for canaries — become repeated work in every service's code. A service mesh move
What three properties make up the CIA triad?1 / 10
Confidentiality (only authorized parties can read data), Integrity (data isn't tampered with undetected), and Availability (systems and data are accessible when needed). It's the core model for evaluating security.
What are HotSpot's C1 and C2 compilers in tiered compilation?1 / 10
C1 (client) compiles quickly with light optimization for fast warm-up; C2 (server) applies aggressive, profile-guided optimizations for peak throughput on hot methods. Tiered compilation starts interpreted, moves to C1, then promotes the hottest code to C2.
It is a constructor that does not always create a new instance: it can return a cached object, a subtype, or run logic before returning. It must return an instance of the class.
Three Kinds of Storage Like most cloud providers, GCP splits storage by access pattern. Cloud Storage holds objects accessed over HTTP(S) with no real filesystem. Persistent Disk is a block device attached to one VM at a time. Filestore is
Software
Software · L1 · Google Cloud: Storage & Database Options
Fiber is React's internal reconciler (introduced in React 16). Each React element is a fiber node — a unit of work with priority, parent/sibling/child links. Fibers allow work to be paused, resumed, or aborted, enabling concurrent rendering.
What is the primary role of an operating system?1 / 9
The OS manages hardware resources (CPU, memory, storage, devices) on behalf of programs and provides a clean abstraction layer — processes, files, sockets — so applications don't program hardware directly.
Three Kinds of Storage AWS offers storage shaped for different access patterns. Object storage (S3) is accessed over HTTP and has no real filesystem. Block storage (EBS) behaves like a virtual hard disk attached to one instance. File storag
Types are non-nullable by default; you must explicitly opt in with `?` (e.g. String?) to allow null. The compiler guarantees a non-nullable variable can never be null, eliminating null-reference errors at compile time. Introduced in Dart 2.12 and made mandatory (no opt-out) in Dart 3.0.
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.
How does JavaScript's garbage collector know when to free memory?1 / 10
Modern engines use mark-and-sweep: the GC marks all objects reachable from GC roots (globals, call stack), then sweeps (frees) everything unreachable. Objects not reachable from any live reference are eligible for collection.
Three Ways to Create a Value Go gives you three different ways to bring a value into existence, and they aren't interchangeable — each is scoped to a different kind of type or a different need. Picking One In practice, most Go code reaches
Finite Automata and Regular Languages A deterministic finite automaton (DFA) is a 5-tuple M = (Q, Σ, δ, q₀, F): a finite state set Q, alphabet Σ, total transition function δ: Q × Σ → Q, start state q₀, and accepting states F ⊆ Q. Extend δ t
Software
Software · L5 · Automata Theory & Formal Languages
What do the letters in the STRIDE threat model stand for?1 / 10
Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, and Elevation of privilege — a taxonomy for enumerating threats against each component and data flow.
Why do you need a stable `key` when rendering a list?1 / 8
Keys let React match elements between renders to reuse DOM nodes and preserve component state. Using array index as key breaks when items are reordered/inserted — state attaches to the wrong item.
What is the main weakness of range-based sharding?1 / 9
Range sharding (e.g. splitting by user ID range) preserves ordering and makes range queries efficient, but concentrates writes onto whichever shard owns the currently 'hot' range — e.g. all new signups land on the last shard if sharded by monotonically increasing ID, creating a hotspot.
What do the `Send` and `Sync` marker traits guarantee?1 / 10
`Send` means a type can be transferred across thread boundaries; `Sync` means `&T` can be shared across threads safely. The compiler uses them to enforce data-race freedom.
A VPC is a logically isolated virtual network within an AWS region where you launch resources, controlling IP addressing, subnets, routing, and gateways.
A service mesh moves cross-cutting networking concerns (mTLS, retries, timeouts, traffic shifting, telemetry) out of application code into a sidecar proxy (data plane) per Pod, controlled by a central control plane. Apps stay oblivious to the L7 logic.