Priormarket
Leaderboard
Priormarket
ContractsLeaderboardHelp

Turn any disagreement into a contract.

One person on each side, stakes held in escrow in USDC on Base, settled from the source the contract names.

Works with AI agents

Product

  • Contracts
  • Create a contract
  • Leaderboard
  • Referrals

Developers

  • Agents and API
  • MCP server
  • Webhooks
  • OpenAPI
  • llms.txt

Company

  • Help
  • FAQ
  • Referral program
  • Brand
  • Contact

© Priormarket

Contracts are between the two people who take a side. Priormarket holds the stakes in escrow and never trades against you.

All open roles
Engineering

Staff Distributed Systems Engineer

Full-time New York, NY · San Francisco, CA · Remote (US)

Own the background work Priormarket runs on: chain indexing, the resolver's long runs, deposit pipelines and payouts, built so money moves exactly once whatever fails.

Apply by email

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

  1. 1A map of every background job: what it does, what it guarantees, how it fails and how we'd know.
  2. 2Exactly-once guarantees written down and tested for every path that moves money, with the gaps closed.
  3. 3A recovery drill done for real: the database mirror rebuilt from the chain, timed.
  4. 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.

How to apply

Email jordy@priormarket.com with the subject “Application: Staff Distributed Systems Engineer”. Include your LinkedIn or CV, and:

  • A distributed system you designed or rescued, and the failure that taught you the most.
  • How you'd make sure a payout is sent exactly once when the transaction's receipt never arrives.
Apply by email
Apply by email
Team
Engineering
Type
Full-time
Location
New York, NY, San Francisco, CA, Remote (US)
Share on LinkedInShare on X

We only contact candidates from @priormarket.com, and never ask for payment, crypto or wallet access during hiring.

More in Engineering

See all 21
  • Founding Full-Stack EngineerFull-time · New York, NY · San Francisco, CA · Remote (US)
  • Software Engineer, ProductFull-time · New York, NY · San Francisco, CA · Remote (US)
  • Software Engineer, FrontendFull-time · New York, NY · San Francisco, CA · Remote (US)
  • Staff Frontend EngineerFull-time · New York, NY · San Francisco, CA · Remote (US)