In Kubernetes, Deployment and StatefulSet are both controllers used to manage Pods, but they serve different purposes based on the application's requirements. Here’s a breakdown of their key differences:
-
Deployment:
- Best for stateless applications (e.g., web servers, REST APIs).
- Pods are interchangeable (no unique identity or persistent storage).
- Scaling up/down or rolling updates don’t require stable identities or ordered operations.
-
StatefulSet:
-
Designed for stateful applications (e.g., databases like MySQL, Kafka, Elasticsearch).
- Sign up for GCP Free Trial (requires credit card for billing).
- Create a Project in the GCP Console.
- Go to Billing → Link a Billing Account to your project.
The itemgetter
function from Python's operator
module creates a callable that retrieves items from objects using indices (for sequences like lists/tuples) or keys (for mappings like dictionaries). It is efficient and commonly used with functions like sorted()
, max()
, and min()
for clean, readable code.
from operator import itemgetter
- Basic Usage with a List
-
Embrace Failure as Inevitable
- Design for graceful degradation, automatic recovery, and chaos testing.
- Example: "Like brushing your teeth" – build resilience into daily workflows.
-
Simplify to Scale
- Zoom out: Prioritize high-impact components.
- Declutter services: Eliminate redundant systems to reduce failure points.
-
Co-Design Physics and Software
JP MORGAN | |
- trader hdedge | |
- quant research | |
software developer | |
1. large book index words/pages | |
- indexs wors page # increasing order | |
O(N) | |
Sorting (ONlgN) | |
list scan pages no need to sort- |
Sharing as a data point for people who are going through the same experience/curious what it's like.
- Aug 9 - Got a calendar event titled "ER Connect". This was where they mentioned that I had to choose between PIP or Severance.
- Aug 11 - Deadline for signing Acceptance. Signed and accepted the package a few minutes before the deadline.
- Aug 19 - Official last day of work. Lose access to workplace, email, office buildings.
-
Open VS Code Keyboard Shortcuts
- Press
Ctrl + K
thenCtrl + S
(Windows/Linux) - OR
Cmd + K
thenCmd + S
(Mac)
(This opens the keyboard shortcuts editor.)
- Press
-
Search for the Python Run Command
- Type in the search bar:
Python: Run Python File in Terminal
- Type in the search bar: