Staff Distributed Systems Engineer

PriorMarket

San Francisco (CA)

On-site

USD 180,000 - 240,000

Full time

18 hours ago
Be an early applicant

Get a reply from this employer

Your resume and cover letter, tailored to exactly what they’re hiring for.

Get past ATS filters

Job summary

Priormarket seeks a senior backend/platform engineer to own the architecture of its background work. You will ensure idempotent, exactly-once processing across chain sync, keeper, resolver, news watcher, and payout flows, with robust recovery and monitoring.

You will design leases and backpressure to handle bursts, keep Postgres healthy under concurrency, and guide the team on retry-first design principles for scalable reliability.

Qualifications

  • 8+ years in backend, platform or infrastructure engineering.
  • Deep knowledge of idempotency and at-least-once delivery.
  • Postgres coordination using locks, constraints and transactions.
  • Experience with durable queues, workflow engines or streams.
  • Integrations with payment providers, blockchains, or external APIs.
  • Proven ability to recover production systems from backups.

Responsibilities

  • Own the architecture of Priormarket's background work: chain sync and the keeper, resolver runs, the news watcher, deposit detection, referral accrual and payouts, notifications and webhooks.
  • Decide, with numbers, when scheduled jobs should become durable queues, long-lived workers or a separate indexer, ensuring no drops or duplications.
  • Ensure money movement is exactly-one end-to-end: payout recorded before sending, and recoverable on retries without re-issuing payments.
  • Design leases, concurrency limits and backpressure to prevent slowdowns from rate limits or bursts.
  • Prevent single bad rows from stalling work via failure budgets, quarantine for persistent failures, and alerts.
  • Prove recoverability: rebuild the Postgres mirror from on-chain events and verify balances after replaying a day of fee events.
  • Keep the database healthy under concurrent work: connection pooling, lock contention control, and safe long transactions.
  • Teach retries-oriented design from the first line of a feature.

Skills

Backend engineering
Platform engineering
Idempotency
Exactly-once processing
PostgreSQL
TypeScript
Workflow engines (Temporal/Inngest)
System reconciliation

Education

Bachelor's degree in Computer Science or related field

Tools

PostgreSQL
Temporal
Inngest

Job description

About The Role

Most of what happens on Priormarket happens when nobody is looking. Every minute, a job mirrors the escrow contract's events on Base into Postgres, then cancels expired offers, finalizes contracts whose dispute window has closed, refunds the ones nobody could resolve and claims payouts into winners' wallets. Every five minutes, the resolver works through the contracts that are due, some of them runs of several searches, page fetches and model calls, while a news watcher reads around 30 headline feeds and every article GDELT logged in the last fifteen minutes to wake the contracts the news might settle. Another job credits referral earnings from every fee paid on-chain.

About The Role

Most of what happens on Priormarket happens when nobody is looking. Every minute, a job mirrors the escrow contract's events on Base into Postgres, then cancels expired offers, finalizes contracts whose dispute window has closed, refunds the ones nobody could resolve and claims payouts into winners' wallets. Every five minutes, the resolver works through the contracts that are due, some of them runs of several searches, page fetches and model calls, while a news watcher reads around 30 headline feeds and every article GDELT logged in the last fifteen minutes to wake the contracts the news might settle. Another job credits referral earnings from every fee paid on-chain.

Today this runs on scheduled serverless jobs held together by leases, cursors, advisory locks and idempotent writes, and it works because each piece was designed to be run twice safely. Your job is to keep that true as the work multiplies: decide when a scheduled job should become a queue, a dedicated worker or a separate indexer, make every movement of money happen exactly once across retries, timeouts and partial failures, and make sure we could rebuild the whole system from the chain if we ever had to.

What you'll do
  • Own the architecture of Priormarket's background work: chain sync and the keeper, resolver runs, the news watcher, deposit detection, referral accrual and payouts, notifications and webhooks.
  • Decide, with numbers, when scheduled jobs need to become durable queues, long-lived workers or a separate indexer, and make each move without dropping or doubling a single event.
  • Make money movement exactly‑once end to end: a payout is recorded before it's sent, a transaction whose receipt never came back is settled from the chain and never resent, and a crashed run repeats work without repeating effects.
  • Design leases, concurrency limits and backpressure so a slow model provider, a rate‑limited RPC endpoint or a burst of contracts settling at once slows things down instead of piling up.
  • Make sure one bad row can never stall the work for everyone: failure budgets per step, quarantine for work that keeps failing, and alerts when it does.
  • Prove we can recover: rebuild the Postgres mirror from on‑chain events, restore from backup, replay a day of fee events and get the same balances, and know how long each one takes.
  • Keep the database healthy under concurrent work: connection pooling, lock contention, long transactions and the pooler's own failure modes.
  • Teach the team to design for retries from the first line of a feature.
What you'll bring
  • 8+ years in backend, platform or infrastructure engineering, including systems you designed and ran where losing or doubling work had real consequences.
  • Deep, practical knowledge of idempotency, at‑least‑once delivery, leases and locks, and how to get exactly‑once effects out of them.
  • Postgres as a coordination tool, not just storage: you've used locks, unique constraints and transactions to make concurrent work safe, and you know what a connection pooler does when it misbehaves.
  • Experience with durable queues, workflow engines or streams, and the judgment to know when a simpler design is enough.
  • Integrations with outside systems that time out, rate‑limit and answer late: payment providers, blockchains, third‑party APIs.
  • You've restored a production system from backup for real, or in a drill realistic enough to count.
  • Strong TypeScript or another systems language.
Bonus points
  • Blockchain indexing: reorgs, finality, RPC failover and replaying from a block.
  • Serverless platforms and their limits: execution time, cold starts, concurrency.
  • Workflow engines such as Temporal or Inngest, or job queues built on Postgres.
Your first 90 days
  • 1A map of every background job: what it does, what it guarantees, how it fails and how we'd know.
  • 2Exactly‑once guarantees written down and tested for every path that moves money, with the gaps closed.
  • 3A recovery drill done for real: the database mirror rebuilt from the chain, timed.
  • 4A decision, with numbers, on what moves off scheduled jobs first, and that move shipped.
About Priormarket

Priormarket turns any disagreement into a contract. Someone writes a yes‑or‑no question in plain words ("Will Bitcoin trade above $150,000 by March 31?", "Will IShowSpeed's stream go past 24 hours?") , puts money on their side, and one other person takes the other side. Both stakes are locked in a USDC escrow contract on Base until the outcome is known, and the winner takes the pool.

The hard part of a prediction market is settling it fairly. Ours is settled by an AI resolver that reads official records, credible reporting, price feeds and even livestreams, quotes its evidence word for word, and checks itself in code. Either side can dispute an outcome for 48 hours, and human moderators decide what the AI can't. Deposits work with crypto from most chains, with cards and Apple Pay, and from exchanges.

We're early, and the people who join now decide what Priormarket becomes. We care most about two things: reaching the people who already argue about outcomes every day (crypto traders, sports fans, stream chats, group chats), and knowing each world well enough to write contracts that are worth taking.

Get your free, confidential resume review.

or drag and drop your file here.

Similar jobs

Similar jobs worth comparing

Staff Backend Engineer
Staff Backend Engineer

PriorMarket • San Francisco (CA)

On-site
USD 180,000 - 260,000
Software Engineer, Frontend
Software Engineer, Frontend

PriorMarket • San Francisco (CA)

On-site
USD 150,000 - 210,000
Corporate Development Lead
Corporate Development Lead

PriorMarket • San Francisco (CA)

On-site
USD 180,000 - 260,000
Head of Markets
Head of Markets

PriorMarket • San Francisco (CA)

On-site
USD 180,000 - 250,000
Resolution Operations Specialist, Overnight
Resolution Operations Specialist, Overnight

PriorMarket • New York (NY)

Remote
USD 95,000 - 130,000
Infrastructure Engineer
Infrastructure Engineer

PriorMarket • San Francisco (CA)

On-site
USD 180,000 - 260,000
Trust & Safety Lead, Resolution
Trust & Safety Lead, Resolution

PriorMarket • New York (NY)

On-site
USD 120,000 - 170,000
Software Engineer, Growth
Software Engineer, Growth

PriorMarket • San Francisco (CA)

On-site
USD 180,000 - 260,000
Director, Data & Analytics
Director, Data & Analytics

PriorMarket • San Francisco (CA)

On-site
USD 210,000 - 300,000
Workplace Lead
Workplace Lead

PriorMarket • San Francisco (CA)

Remote
USD 140,000 - 230,000