Tomás Herrera

Tomás Herrera

Senior back-end engineer

Senior back-end engineer building payment systems that do not lose money.

Open to staff-level back-end roles

GitHub ↗ LinkedIn ↗ Madrid, Spain

About

I make money move correctly — once, on time and with a paper trail.

Back end has been my home since my first job, writing SOAP adapters for a Spanish bank. Since then I have built double-entry ledgers, card-authorisation services and the reconciliation jobs that run at 3 a.m. so finance teams can sleep.

Today I lead the payments platform at Paybright: twelve services, two regions, one rule — every cent accounted for. Outside work I maintain a Postgres extension, teach a distributed-systems course on weekends and run very slowly.

GoKotlinPostgreSQLKafkaLedgersAWS
Tomás Herrera
12
years in back end
€4B
a year through my ledgers
99.995%
payments API uptime
40
engineers mentored

I design APIs, ledgers and queues for fintech teams — the parts nobody sees until they break. Twelve years in, I still love a good idempotency key.

Experience

Where I have worked.

  1. 2022 — now

    Staff Engineer, Payments Platform · Paybright

    Lead twelve services across two regions; designed the ledger and the idempotent payments API; run the architecture review.

    Madrid
  2. 2018 — 2022

    Senior Back-end Engineer · Cabify

    Built driver payouts in Go; moved 30 services to the transactional outbox; on-call lead for payments.

    Madrid
  3. 2015 — 2018

    Back-end Engineer · Typeform

    Wrote the webhooks platform and the billing service migration from PHP to Go.

    Barcelona
  4. 2013 — 2015

    Software Engineer · BBVA

    Integration services between core banking and new mobile apps.

    Madrid
2011 — 2013

MSc Distributed Systems

Universidad Politécnica de Madrid

2007 — 2011

BSc Computer Science

Universidad de Sevilla

View full résumé ↗

Projects

Selected systems.

Some of the systems I designed and led, with the number that mattered most.

  1. 2024 · Design lead, team of six

    Double-entry ledger ↗

    A ledger service that records every movement of money as balanced journal entries, with immutable history and point-in-time balances.

    €4Ba year, zero unexplained differences
    GoPostgreSQLKafka
  2. 2023 · Tech lead

    Idempotent payments API ↗

    Rebuilt the public payments API around idempotency keys and a request journal; retries became safe for every client.

    99.995%uptime over two years
    KotlingRPCRedis
  3. 2022 · Author

    Nightly reconciliation ↗

    Matches bank statements, card-scheme files and the ledger every night and opens a ticket for each mismatch with its likely cause.

    3 h → 11 minreconciliation run time
    GoS3Airflow
  4. 2021 · Author, open sourced

    Outbox relay ↗

    A transactional-outbox relay that moved 30 services off dual writes to Kafka without a single lost event.

    30services migrated
    GoPostgreSQLKafka
  5. 2020 · Engineer

    Rate limiter at the edge ↗

    Token-bucket limits per merchant in Redis with a local fallback, protecting the card network from retry storms.

    0scheme fines since launch
    RedisLuaEnvoy

Stack

Tools I trust in production.

Levels are how deep I have gone, not how often I have used them.

GoLanguages · 94
KotlinLanguages · 86
JavaLanguages · 82
SQLLanguages · 95
PostgreSQLData · 96
KafkaData · 88
RedisData · 80
gRPC & REST designAPIs · 92
KubernetesInfra · 78
AWSInfra · 84
TerraformInfra · 76
ObservabilityOps · 88

Open source

Things I maintain.

Small, boring, well-tested — the way back-end libraries should be.

  1. ★ 2.4k

    pg_ledger ↗

    A Postgres extension for balanced journal entries and fast balance queries.

    C
  2. ★ 1.8k

    outboxer ↗

    A transactional-outbox relay for Postgres and Kafka.

    Go
  3. ★ 950

    idem ↗

    Idempotency-key middleware for Go HTTP and gRPC servers.

    Go
  4. ★ 410

    kafka-replay ↗

    Replay a time range of a topic into a sandbox safely.

    Kotlin

Writing

Writing and talks.

  1. Sep 2025

    Idempotency keys, all the way down ↗

    How we made every retry safe across twelve services.

    Blog
  2. Apr 2025

    A ledger is a log you can add up ↗

    Double-entry accounting for engineers, with SQL.

    Talk · GopherCon EU
  3. Oct 2023

    Killing dual writes with an outbox ↗

    Moving 30 services without losing an event.

    Blog
  4. Mar 2023

    Reconciliation is a product ↗

    Why finance teams are your most important users.

    Talk · Commit Conf

Words

What teammates say.

Tomás designs systems the way accountants think — which is exactly what a payments company needs.
Lucía Romero — CTO, Paybright
The best code reviewer I have worked with. He finds the race condition and explains it kindly.
Pedro Alves — Senior Engineer, Cabify
His reconciliation job turned our month-end close from a week into a morning.
Marta Gil — Head of Finance Ops, Paybright

Recognition

Certifications & talks.

  1. 2024

    AWS Certified Solutions Architect — Professional

    Amazon Web Services

  2. 2025

    Speaker

    GopherCon Europe

  3. 2022

    Certified Kubernetes Administrator

    CNCF

  4. 2021

    Engineering Excellence Award

    Cabify

Contact

Let’s talk about your platform.

I am open to staff-level back-end roles and the occasional architecture review. I reply within two days.

Write
preview@example.com
Call
+34 91 000 0000
Based
Madrid, Spain

Made withSitesfareReport