Data platform · AI infrastructure
Ankit Khare
I build data platforms on Kubernetes, and lately the LLM tools that run on top of them.
I'm a data platform technical lead at Joyent (Samsung Cloud), leading two engineers. I helped build a managed Spark service from its first month, then the Iceberg lakehouse on top of it and a Text2SQL API that answers infrastructure questions in Slack, measured against its own eval set.
Selected work
Production systems I built and run at Joyent for Samsung Private Cloud.
Text2SQL with an eval set
Plain-English questions become guarded Trino SQL over the lakehouse, answered in an API and a Slack bot. A sqlglot guard checks every query and OPA policies hide PII fields, failing closed.
Iceberg lakehouse
Spark ETL and Airflow 3 DAGs loading EC2, VPC, IAM, DCIM, ServiceNow, Jira and PagerDuty data. I consolidated the per-table jobs into a few parameterized ones (185 to 97 DAG files) and moved our Snowflake history and pipelines onto it, about $3,700 a month saved. A FastAPI and Ray Serve API serves it and backs the team's MCP server.
Managed Spark service
An AWS EMR on EKS compatible service in Go on Temporal: Jupyter endpoints and workspaces, autoscaling, metering, EKS Pod Identity, and hourly canaries in every region.
Open-source labs
Side projects where I try out the tools I use at work, plus a few I expect to need next. Each one runs locally with Docker and has its own README.
Text-to-SQL agents, three ways
Cube semantic layer, raw SQL and a hybrid over an Iceberg lakehouse, measured against each other.
learn-ai-agentMCP servers and AI agents
An EC2 inventory lakehouse behind a REST API and an MCP server, queried by Claude agents.
agent-evals-observAgent evals and observability
OpenTelemetry GenAI tracing, Langfuse, and offline and online evals.
rag-vector-srchRAG and vector search
pgvector hybrid search, reranking, evals and citations.
flink-learningStream processing
Kafka, Flink SQL, Debezium and Iceberg around a real-time EC2 inventory.
llm-from-scratchAn LLM from scratch
A small modern decoder-only model, built and trained on a laptop.
argocd-terraform-opentofuGitOps lab
Argo CD, OpenTofu and OpenBao on kind.
ai-data-roadmapAI and data roadmap
A ranked learning path for agentic AI and data platforms, with runnable lessons.
Writing
Notes from building data and AI systems.
Consolidating 185 Airflow DAG files into 97
Our lakehouse refresh took two to three hours, mostly spent starting Spark applications. Folding them into a few config-driven jobs got it down to minutes.
November 2026 · 3 min readAn Iceberg MERGE that read 930 million rows to write 316 thousand
The merge condition matched on year, month and day, so I assumed it only touched one day. Spark was reading the whole table every hour.
November 2026 · 3 min readA Spark 3.5 optimizer crash that a cache was hiding
A production job failed on every retry with an internal Spark error. The cause was a nullif() join key, and a persist() had been hiding it.
November 2026 · 3 min readHow ignoreCorruptFiles hid missing days in our lakehouse
Backfills kept losing days while every run reported success. A Spark read option was skipping files on transient errors.
November 2026 · 3 min readIngesting our PagerDuty history in 18 minutes instead of two hours
The first version crawled the API one incident at a time for up to two hours. The faster one then ran into Spark's 128 MB message limit.
November 2026 · 4 min readHow I evaluate a Text2SQL agent
Hand-written answers with a trap in each question, a hold-out set I never tune on, and what one run of my semantic-layer lab showed.
Experience
Joyent, Inc. (Samsung Cloud), Sunnyvale, CA
- Data Platform Technical LeadNov 2026 - PresentLead the data platform team: the managed Spark service and the Internal Analytics lakehouse and APIs. Moved 59 GB of Snowflake history and its ETL onto our self-hosted stack, saving about $3,700 a month.
- Senior Data Platform EngineerFeb 2024 - Nov 2026Built the Iceberg lakehouse, its REST API and the Text2SQL work; ran on-call and moved CI/CD to GitHub Actions.
- Generalist EngineerAug 2021 - Feb 2024Joined the managed Spark service in its first month; before that, tooling for Joyent's storage cluster.
- M.S., Computer Science2019 - 2021Syracuse University. B.Tech., SRM Institute of Science and Technology. Best Paper Award, ICIOT 2019.
Toolbox
The tools I use most.
- AI and LLM
- Text2SQL, LLM evaluation, Model Context Protocol (MCP), RAG, prompt design, OPA guardrails
- Data
- Apache Spark, Apache Iceberg, Trino, Apache Airflow, DuckDB, Kafka, Flink, Apache Superset
- Platform
- Kubernetes, Helm, Terraform, Temporal, Ray Serve, FastAPI, HashiCorp Vault, Consul
- Cloud
- AWS: EKS, EMR on EKS, S3, Glue, IAM, EC2, ECR, Route 53
- Languages
- Python, Go, SQL, TypeScript, Bash