Skip to content
Skills Library
Programming · Building & coding

azure-table

/azure-table

Apply when reading or writing Azure Table Storage data (messages, moderation logs) in server code. Esposter's Azure Table Storage conventions, where the shared `@esposter/db` and `@esposter/azure` helpers own each table job and are never hand-rolled.

Repository
Esposter ↗
Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
8
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Apply when reading or writing Azure Table Storage data (messages, moderation logs) in server code. Esposter's Azure Table Storage conventions, where the shared `@esposter/db` and `@esposter/azure` helpers own each table job and are never hand-rolled.

Original author description

Apply when reading or writing Azure Table Storage data (messages, moderation logs) in server code. Esposter's Azure Table Storage conventions, where the shared `@esposter/db` and `@esposter/azure` helpers own each table job and are never hand-rolled.

How it works

  1. Deep dives
  2. Key Constants (from @esposter/azure)
  3. Partition / Row Key Design
  4. Reverse-Ticked Timestamps
  5. Batch Writes
  6. Read-Modify-Write Is Conditional
  7. Filter Clauses
  8. Counting — Only After a Capped Read, and Bounded
  9. Entity Class Constructors
  10. Soft-Delete
Original SKILL.md headings · 52 lines, 381 words
SKILL.md preview
---
name: azure-table
description: Apply when reading or writing Azure Table Storage data (messages, moderation logs) in server code. Esposter's Azure Table Storage conventions, where the shared `@esposter/db` and `@esposter/azure` helpers own each table job and are never hand-rolled.
---

# Azure Table Storage Patterns

## Deep dives

- `references/batch-writes.md` — when writing many entities that share a `partitionKey`, or when a batched write's rows can individually conflict.
- `references/conditional-writes.md` — when a write's body is computed from an entity the same request just read (a votes map, a `files` array, any `"Replace"`).
- `references/testing.md` — when a test must observe, intercept or time a table write, or cross a page boundary.
- `references/keys.md` — when designing a table's keys or generating or decoding a `rowKey`.
- `references/filters.md` — when building a filter for a table read, a count or a purge.
- `references/counting.md` — when a surface shows a count of table rows.
- `references/entities.md` — when writing an entity class or soft-deleting a row.

## Key Constants (from `@esposter/azure`)

- `AZURE_MAX_PAGE_SIZE` — `byPage({ maxPageSize: AZURE_MAX_PAGE_SIZE })` for listing entities.
- `AZURE_MAX_BATCH_SIZE` — the chunk size for `submitTransaction`, Azure's hard limit per call.

Always import them from `@esposter/azure`, never redefine locally.

## Partition / Row Key Design

`partitionKey` is the owning room's id, and `rowKey` is `getReverseTickedTimestamp()` so a scan reads newest-first (`references/keys.md`).

## Reverse-Ticked Timestamps

`getReverseTickedTimestamp` is its own inverse and nanosecond-resolved, so a `rowKey` is never `Date.now()`, an ISO string or a suffixed key, and a test faking timers narrows `toFake` to `["Date"]` (`references/keys.md`).

## Batch Writes

**Never spend a round trip per entity when the entities share a `partitionKey`** — `submitTransactionBatches` (`@esposter/db`) chunks them into transactions, and `Promise.all` over single writes still issues a request per row (`references/batch-writes.md`).

## Read-Modify-Write Is Conditional

A server-side read-modify-write reads through `getEntityWithEtag` and writes through `updateEntityConditionally`, and a rejection is classified with the `checkIs*` helpers, `RestError` taken from `@azure/core-rest-pipeline` (`references/conditional-writes.md`).

## Filter Clauses

Filters are `serializeClauses` over a `Clause<Entity>[]` using `CompositeKeyPropertyNames` for the keys; live rows of a partition are `getLivePartitionClauses`, a whole partition `getPartitionKeyFilter` (`references/filters.md`).

## Counting — Only After a Capped Read, and Bounded

Count only when a capped read filled, and bound the walk when the count is shown — a bounded count is a floor, rendered as one (`references/counting.md`).

## Entity Class Constructors

An entity constructor takes an optional `init?` and reads it with `?.`, since `deserializeEntity` calls it bare (`references/entities.md`).

## Soft-Delete

Soft-delete sets `deletedAt` and `updatedAt` together, and reads filter it out through `getLivePartitionClauses` (`references/entities.md`).
Files in this package (8)
  • SKILL.md 3 KB
  • references/batch-writes.md 4 KB
  • references/conditional-writes.md 4 KB
  • references/counting.md 1 KB
  • references/entities.md 1 KB
  • references/filters.md 3 KB
  • references/keys.md 3 KB
  • references/testing.md 2 KB

Versions

The database has no other skills named azure-table.

Database snapshot: 13.11.2026 · package version c74bf25ff2e3 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90typescript
    Apply when writing any TypeScript in this project. Esposter's TypeScript conventions.
  • 90vue
    Apply when writing or reviewing .vue files, or rendering a date or time. Esposter's Vue 3 single-file-component conventions.
  • 100azure-data-tables-java
    Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.
  • 100azure-data-tables-java
    Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at...
  • 95azure-queue-storage
    Expert knowledge for Azure Queue Storage development including best practices, limits & quotas, security, configuration, and integrations & coding patterns. Use when configuring queue auth/encryption, monitoring metrics/logs, handling limits, or coding with Azure Queue SDKs, and…
  • 95azure-storage-queue-ts
    Azure Queue Storage JavaScript/TypeScript SDK (@azure/storage-queue) for message queue operations. Use for sending, receiving, peeking, and deleting messages in queues.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.