AWS Builder Center

SageMaker Feature Store: Batch Writes & ListRecords

SageMaker Feature Store adds BatchWriteRecord, ListRecords, and custom offline tables — ingest features at scale with fewer API calls. Here's what changed.

Lead Data Scientist

SageMaker Feature Store Finally Batches Your Writes — and Lets You List Records

If you've run a feature pipeline on Amazon SageMaker Feature Store at any real scale, you've probably written the same workaround twice: a loop that calls  PutRecord  once per row, and a side table somewhere to remember which record identifiers you actually wrote. Neither is hard, but both are the kind of undifferentiated plumbing that quietly eats afternoons.
SageMaker Feature Store just made both unnecessary. A July update adds  BatchWriteRecord  for high-throughput ingestion,  ListRecords  for discovering what's in a feature group, and custom-named tables in the offline store. If you manage features for training or real-time inference, these three fill some long-standing gaps.

 BatchWriteRecord : ingest at scale with fewer calls

The headline is batch ingestion. Instead of one API call per record,  BatchWriteRecord  writes multiple records across multiple feature groups in a single request — fewer API calls, lower latency, and less client-side orchestration than the one-at-a-time pattern.
A few details that make it production-friendly rather than just convenient:
  • Targets online, offline, or both — you choose the destination per your serving and training needs.
  • Returns individual record failures without failing the entire request, so one malformed row doesn't sink a whole batch. You get back exactly which records didn't land and can retry just those.
  • Time-to-live (TTL) at three levels — record, request, and feature group — so you can expire ephemeral features without a separate cleanup job.
That partial-failure behavior is the part worth underlining. Batch APIs that fail all-or-nothing push retry complexity back onto you; per-record failure reporting keeps your pipeline resilient without custom bookkeeping.
Here's the shape of it with Boto3:
python
import boto3

fs_runtime = boto3.client("sagemaker-featurestore-runtime")

response = fs_runtime.batch_write_record(
Records=[
{
"FeatureGroupName": "customer-features",
"Record": [
{"FeatureName": "customer_id", "ValueAsString": "C1001"},
{"FeatureName": "ltv", "ValueAsString": "842.50"},
{"FeatureName": "event_time", "ValueAsString": "2026-07-21T12:00:00Z"},
],
"TargetStores": ["OnlineStore", "OfflineStore"],
"TtlDuration": {"Unit": "Days", "Value": 30},
},
{
"FeatureGroupName": "session-features",
"Record": [
{"FeatureName": "session_id", "ValueAsString": "S77"},
{"FeatureName": "clicks", "ValueAsString": "12"},
{"FeatureName": "event_time", "ValueAsString": "2026-07-21T12:00:00Z"},
],
},
]
)

# Inspect only what failed — the rest already succeeded
for err in response.get("Errors", []):
print(err["FeatureGroupName"], err["ErrorCode"], err["ErrorMessage"])
One request, two feature groups, per-record TTL, and a clean list of just the failures to retry.

 ListRecords : stop tracking identifiers yourself

Until now, reading from the online store meant you already had to know the record identifier. If you wanted to browse or audit a feature group's contents, you were on your own — usually maintaining a separate index of every ID you'd written.
 ListRecords  removes that. It returns the record identifiers in a feature group one page at a time, so you can:
  • Browse and audit feature group contents directly.
  • Recover record identifiers you didn't track elsewhere.
  • Manage the record lifecycle — find what's stale, expire what's done.
It's a small-sounding API that eliminates a whole category of custom tooling teams built just to answer "what's actually in here?"

Custom-named offline tables

The third piece is quieter but appreciated by anyone with data-governance standards. When configuring an offline store, you can now create AWS Glue and Apache Iceberg tables with custom names rather than accepting auto-generated ones. That means your Feature Store tables can follow your existing catalog naming conventions instead of forcing your data lake to bend around SageMaker's defaults — easier discovery, cleaner lineage, fewer "what is this table?" moments in your catalog.

Why this matters

Feature Store's job is to make features easy to compute, store, and serve consistently across training and inference. These updates chip away at the operational edges that used to require glue code: batching ingestion, discovering records, and cataloging cleanly. Together they mean you write less infrastructure around the feature store and spend more time on the features themselves.
Practical ways to put them to work:
  • Swap per-record  PutRecord  loops in your ingestion jobs for  BatchWriteRecord , and wire your retry logic to the returned per-record failures.
  • Use record- or request-level TTL for short-lived features instead of scheduled cleanup jobs.
  • Replace any homegrown "which IDs did we write?" index with  ListRecords  for audits and lifecycle management.
  • Name your offline Glue/Iceberg tables to match your existing data catalog conventions from day one.
All three capabilities are available in every AWS Region where SageMaker Feature Store is offered, so there's no Region-gating to plan around.

Over to you

If you've been maintaining glue code around Feature Store, some of it just became deletable. Which of these are you adopting first — batch ingestion,  ListRecords  for audits, or custom offline table names? And what workaround are you finally retiring? Share it in the comments.


#AWS #SageMaker #FeatureStore #MLOps #MachineLearning #DataEngineering #FeatureEngineering #Iceberg
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article