Case 04 · Technical lead · Search · Hiring marketplace
AccountMakers — four years leading the team, and a twenty-second search moved into the index.
A hiring marketplace for sales talent, where I led the engineering team for four years and rebuilt the search that its AI matcher now runs on.
01 — The problem
A marketplace with an ATS as its source of truth
AccountMakers matches employers with vetted sales and customer-success professionals: account executives, SDRs, customer-success managers and account managers. The recruiters behind it run everything through Bullhorn, their applicant tracking system, so Bullhorn is the system of record and the marketplace has to stay in sync with it.
Talent build a profile, verify their identity, get matched to jobs, interview and accept offers. Employers search for talent, save searches, get AI-ranked candidates for each job, message people in real time, schedule interviews, run background checks and pay placement fees. An admin API covers approvals, Bullhorn sync and matching runs.
02 — What I built
The foundations, then the team
I was technical lead from the start in 2022, for a team of about 12 engineers across four years. My own commit count is small, around 95 across the repositories, because most day-to-day feature work came from the engineers I directed. What I wrote myself tends to be scaffolding, infrastructure, integrations and one-off pieces the rest of the system depends on.
That includes the Bullhorn integration, the split into talent, employer and admin portals behind Cognito auth, and the first real-time messaging layer, which the team later grew into a full chat system. In 2026 I moved talent search from MongoDB to Elasticsearch.
The team built most of the product on top: the matching engine and its LLM re-ranker, embeddings, AI talent summaries, background and identity checks, invoicing, interviews, the employer-of-record integration for temporary assignments and timesheets, and most of the UI.
- Bullhorn OAuth service and the token-refresh Lambdas
- Talent signup with Bullhorn field mapping
- Invites, roles, teams and email templates
- Socket.IO messaging and the saved-search model job matching grew from
- Docker image, MongoDB backup Lambda, Stripe webhook
- Deploying the recruiter-reporting service with headless-Chrome PDFs
03 — The hard part
One refresh token, three environments
Bullhorn issues one rotating refresh token per API user. Every refresh invalidates the previous token. If development, staging and production each refreshed on their own, they would keep knocking each other offline.
So only one function refreshes. A production Lambda runs the full OAuth sequence — authorize, exchange the code for access and refresh tokens, then log in for a REST session token and URL — and stores the result. It then fans the fresh token out to the development and staging Lambdas, which only store it and never refresh. Each function has its own IAM role, and API middleware reads the stored token on every Bullhorn-backed request.
I prototyped the OAuth flow on its own in 2022, and the multi-environment version reached production in 2023. The refresher is triggered through EventBridge and SQS rather than by user traffic, so the shared session stays alive even when nobody is using the product.
04 — Twenty seconds
Moving the ranking into the index
The employer "Hire Now" search was a MongoDB aggregation that took about 20 seconds over roughly 66,000 candidates. I profiled it and found four costs: work-experience array stages (8–10 s), a sort on six computed fields (8–10 s), a facet with three lookups (2–3 s), and synonym and excluded-title lookups (1–2 s). The target was under 2 seconds.
I built a denormalised Elasticsearch index, loaded by a resumable bulk migration with dry-run, limit, batch and skip options. All six sort dimensions run as scripts inside Elasticsearch. One is a location tier: exact city, then metro area, then state, then desired locations. Elasticsearch returns only the 18 documents a page needs, with the total count in the same request, then three small MongoDB lookups run in parallel. The design estimate is 400–500 ms.
Results had to match the old search. A script ports our job-title synonym collection into Elasticsearch synonym filters and checks them through the analyser, excluded titles become must-not clauses, and side-by-side dumps of both engines checked that the sort order matched.
05 — Built on top
The matcher my team built
That index became the retrieval layer for job matching. Two engineers on my team built the AI matcher on the search layer I designed, growing it from the saved-search model I had created earlier. I want to be exact about this: the matching code is theirs.
It runs as a funnel. Elasticsearch applies the hard filters. Rule-based scoring and OpenAI embeddings blend at 60/40 by default, shifting with how much signal each side has. An LLM then re-ranks only the top 100, in batches of 10. Candidates scoring under 50 or with thin profiles are skipped, and results are cached on hashes of the job and candidate data, so unchanged pairs are never paid for twice.
The prompt may use only the supplied data, excludes protected characteristics and must name at least one gap per candidate. Scores are capped at 84 when primary-skill coverage or title quality is weak. OpenAI is the default provider; Gemini is configured as a fallback, switched through configuration rather than automatically.
06 — What I'd change
Next
The search number on this page is a design estimate. I would put a latency benchmark on the live search, run before and after every change to the index, so the claim stays measured rather than estimated.
The provider fallback in the matcher is a configuration switch. I would make it automatic, with retries that move to the second provider when the first keeps failing, so a provider outage slows matching down instead of stopping it.
Notes
- ~20 s was the MongoDB aggregation; <2 s was the target. The Elasticsearch design is estimated at 400–500 ms — a design estimate, not a post-deploy benchmark.
- Across talent, employer and admin route modules.
- Schedules, integrations and auth triggers, mostly built by the team.
- About 12k approved, from the February 2026 search analysis.
- Search timing: about 20 s was the MongoDB aggregation; the Elasticsearch design is estimated at 400–500 ms against a 2-second target.
- The matching engine, embeddings and LLM re-ranker were written by engineers on my team; I designed the search layer they run on and led the team.
- Figures are simplified diagrams. Marketing mockups with fictional numbers are not used.