Better HN
topnewbestaskshowjobs
Log inSign up

aman179102

1 karma · joined Aug 20, 2025 (1y ago) · 30 submissions

Senior Systems & AI Engineer | Open-source systems & distributed storage (https://github.com/aman179102)
Submissions

comment 5d ago · link · parent

When optimizing inference systems in production, memory bandwidth is typically the primary bottleneck rather than raw compute FLOPs:

1. Memory Bandwidth & Quantization: Autoregressive token generation is heavily memory-bandwidth bound. Quantizing weights to 4-bit/8-bit (AWQ, GPTQ, or GGUF) cuts VRAM footprint and memory bus transfers proportionally, delivering near-linear inference speedups with negligible perplexity loss.

2. KV Cache Management: Under concurrent load, the KV cache quickly consumes available VRAM. Using continuous batching with PagedAttention (vLLM) eliminates memory fragmentation and prevents out-of-memory crashes on long context windows.

3. Local-First vs Cloud API: For latency-sensitive or proprietary workflows, self-hosting quantized models locally behind an internal API proxy ensures predictable latencies, data privacy, and zero API subscription costs.

comment 1w ago · link · parent

When evaluating storage architectures for this scale, the primary trade-off usually boils down to durability versus storage expansion.

1. Replication vs Erasure Coding: Standard 3x replication is operationally simple with zero CPU decode overhead, but imposes a 200% storage tax (3x raw disk footprint). Moving to Reed-Solomon erasure coding (such as 4 data + 2 parity shards) cuts your storage overhead down to 1.5x while still tolerating 2 concurrent disk/node failures. The trade-off is CPU reconstructive read penalty when a shard is degraded.

2. Metadata Separation: Keep the block/chunk storage decoupled from object metadata. Storing chunk hashes (SHA-256) in a relational store like PostgreSQL gives you instant deduplication and transactional consistency for object manifests, while raw chunks stream directly to disk.

3. Failure Domains: Ensure your parity shards span independent failure domains (separate racks or availability zones) rather than just different drives on the same machine.

3.

Show HN: Io_uring vs. Epoll – Deterministic Tail Latency in Linux Gateways(academia.edu ↗)

2 points · by aman179102 · 1w ago · discuss

comment 1w ago · link · parent

In system design at this stage, the rule of thumb is to design for operational simplicity until data boundaries dictate splitting:

1. Monolith First with Clean Module Boundaries: Premature microservices introduce distributed tracing complexity, partial failure modes, and the dual-write problem. Build a well-structured modular monolith with clear domain interfaces first.

2. Isolate Failure Domains: Split services only when their operational requirements diverge fundamentally (e.g. CPU-intensive background video processing versus low-latency user auth, or distinct SLA/compliance requirements).

3. Idempotency & Observability: Make all state-changing endpoints idempotent with client-generated tokens, and propagate correlation IDs across all service calls.

comment 2w ago · link · parent

When evaluating storage architectures for this scale, the primary trade-off usually boils down to durability versus storage expansion.

1. Replication vs Erasure Coding: Standard 3x replication is operationally simple with zero CPU decode overhead, but imposes a 200% storage tax (3x raw disk footprint). Moving to Reed-Solomon erasure coding (such as 4 data + 2 parity shards) cuts your storage overhead down to 1.5x while still tolerating 2 concurrent disk/node failures. The trade-off is CPU reconstructive read penalty when a shard is degraded.

2. Metadata Separation: Keep the block/chunk storage decoupled from object metadata. Storing chunk hashes (SHA-256) in a relational store like PostgreSQL gives you instant deduplication and transactional consistency for object manifests, while raw chunks stream directly to disk.

3. Failure Domains: Ensure your parity shards span independent failure domains (separate racks or availability zones) rather than just different drives on the same machine.

6.

Show HN: I built S3 from scratch in Go – open-source, one-command deploy(github.com ↗)

2 points · by aman179102 · 6mo ago · discuss

7.

Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face)

1 points · by aman179102 · 7mo ago · 1 comment

8.

Show HN: MoodSense AI – mood detection and recommendations from text(huggingface.co ↗)

2 points · by aman179102 · 7mo ago · discuss

9.

Show HN: Podvoice – Local-first CLI to turn Markdown into multi-speaker audio(github.com ↗)

1 points · by aman179102 · 9mo ago · discuss