Skip to content

[FEAT]: Deno + Hono full text search app - #19

Open
Nikhiladiga wants to merge 2 commits into
typesense:masterfrom
Nikhiladiga:feature/deno-hono-search-app
Open

[FEAT]: Deno + Hono full text search app#19
Nikhiladiga wants to merge 2 commits into
typesense:masterfrom
Nikhiladiga:feature/deno-hono-search-app

Conversation

@Nikhiladiga

Copy link
Copy Markdown
Contributor

Change Summary

  • Added sample Deno App with Hono framework + Typesense integration

PR Checklist

…esense

Adds a standalone sample matching the API surface of the other backend samples:
PostgreSQL is the source of truth and Typesense is a derived index, kept current
by real-time mirroring on write plus a background reconcile every 60 seconds.

Queries are hand-written with postgres.js rather than an ORM, since the repo
already covers Prisma, Sequelize and Drizzle. updated_at is maintained by a
database trigger so changes made outside the API are still picked up.

The incremental sync avoids three ways of losing rows silently. The last sync
time is read before the work rather than after, so rows edited mid-run are not
skipped. It only advances when the whole run succeeded, so a partial failure is
retried instead of dropped. And startup recovery starts from epoch rather than
from MAX(updated_at), which would never match any row. The timestamp comes from
PostgreSQL so clock skew cannot open a gap, and per-document import results are
inspected rather than assumed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant