> **Lead Software Engineer** · October 2021 to July 2023
> Source: https://www.simonbetton.com/case-studies/getsetup-platform.md (markdown only; there is no HTML page for this document).
> Index of case studies: https://www.simonbetton.com/case-studies/index.md

# Case study: GetSetUp learner platform

## Quick facts

|  |  |
| --- | --- |
| Role | Lead Software Engineer, with technical-lead responsibilities; full stack with a frontend lean and code owner on several services |
| Company | GetSetUp |
| Product | Live and on-demand classes for adults over 50, run by peer Guides |
| Timeline | October 2021 to July 2023 |
| What I owned | Content layer (Node.js, PostgreSQL), class-sessions layer (Zoom), staff admin (Next.js), partner association and attribution tooling, the analytics event pipeline, the React controls behind GetSetUp Embedded |
| What I co-designed | The Presentation API and GraphQL split, with the platform team; the shared service template; engineering tech-lead discussions |

## The problem

GetSetUp runs small live classes around the clock for older adults, plus replays, short video, and articles. Learners browse a catalogue, book a session, join live or watch a replay, and manage membership. Staff run classes, Guides, hosts, and the calendar in an internal admin app.

When I joined in late 2021, distribution was becoming multi-surface. GetSetUp's own site was one surface. Health plans and state aging offices sent members to GetSetUp with access already paid: Tivity Health had just announced exclusive rights to offer GetSetUp to Medicare Advantage plans through SilverSneakers (November 2021), and New York State's Office for the Aging had been running a programme since May 2021, with New Jersey following in November 2022. Those programmes appeared on GetSetUp's own origin as partner-branded landings and entitlements.

A third kind of partner needed something different: GetSetUp classes inside their product, on their origin, not a link to a GetSetUp URL. Internet providers and publishers, AOL first among them, wanted to show the catalogue and play the video on their own pages.

Three things made that hard.

The catalogue had no single source of truth that was neither the search index nor the learner app. Class copy, series, guides, and categories had to be authored once and read by the learner site, the search indexers, the admin, and now partner surfaces.

Partner programmes needed a trail from a programme to a person. Entitlements could say "this user may enter this class", but business development needed to know whose member a user was, which associations were leads, and which had converted into partnered members.

And the audience is older adults. Small type, hover-only controls, and dense dashboards fail for them, and a fork of the classroom built for one partner would eventually land in a learner's browser without the same care.

## What changed because of the work I owned

Content became a service with one contract. I owned most of the content layer, specifically the store, the payload shapes, the tests, and the rules for how other services were allowed to read it: Node.js and TypeScript, PostgreSQL for durable records, Superstruct validating every payload at the boundary, Jest holding the contract. The API is semi-RPC: callers invoke named procedures with validated inputs rather than navigating a REST resource tree that would have to grow with every page type. The learner GraphQL layer, the Presentation API, and later the Embedded controls all read from those procedures.

GetSetUp Embedded became a second client of that contract rather than a fork of the learner app. I built the content path, the player controls, and the Next.js React components and styling a partner mounts on their own origin. The AOL pilot was the first partner to run on that path, before I left in July 2023. GetSetUp announced the product publicly as "GetSetUp Anywhere" in November 2023, listing AOL, CenturyLink, and 18 others as live partners. GetSetUp now describes the integration as an Embed SDK, and the embed host is still a Next.js application.

Partner attribution became a tool rather than a spreadsheet. I built the tooling that associated a user with a GetSetUp partner, surfaced those associations as business-development leads, and converted them into partnered members through a dedicated interface. Partner-association tokens are signed JWTs so a programme can prove a member belongs to it, and the partner processor grants the entitlement only after that association exists. Attribution answers "whose member is this?"; entitlements answer "may this person enter?". Keeping those as two questions let business development work from the association records without reading access records.

Sessions stayed a separate layer with its own store. I owned the class-sessions service: scheduling, bookings, notes, and the Zoom integration for meetings and recordings. Sessions move from draft to published to cancelled, and cancel is terminal because notifications have already gone out. Session rows live in DynamoDB and domain events fan out on SNS and SQS to indexers and workers. Content stayed in PostgreSQL. I kept those apart deliberately: mixing them would have coupled catalogue copy to the Zoom meeting lifecycle. A scheduled populate job creates recurring sessions so the calendar does not depend on someone duplicating rows in admin each week.

The staff admin gave operators one place to work. I owned the Next.js admin (Tailwind, Headless UI, SWR): classes, sessions, series, guides, categories, partners, sponsors, users, bulk session creation, replay import, and a recording browser. Its search and export sit on a dedicated Algolia index fed by its own indexer, so operators are not paginating several services by hand to build a CSV. Authorisation is scope-based and bound to staff identities.

## Decisions and trade-offs

Content as a procedure API on PostgreSQL, not a second GraphQL and not resource REST. Why: the content layer had several very different callers (page assembly, indexers, admin, embeds), and a small set of named, validated procedures was cheaper to keep correct than a resource tree or a second schema to synchronise with the learner GraphQL. The cost: procedure APIs are less self-describing than a schema, and every caller couples to procedure names, so adding a consumer such as Embedded meant reviewing what it was allowed to call rather than letting it query freely. Catalogue page assembly still lived in the Presentation API; content was the source those pages read.

Embedded as a client, not a fork. Why: a per-partner iframe or a copied learner app would have been fastest for the first partner and unmaintainable by the third. The cost: partners get what the shared controls offer and a constrained styling surface, and every change to the content contract now has two first-class consumers to test. I accepted that because the alternative was a second product with its own drift.

Attribution separate from entitlement. Why: the two change for different reasons and are read by different people (business development versus access checks). The cost: an extra association step before a partner grant, and a second place where a partner's membership can be wrong.

Separate stores for content and sessions. Why: catalogue copy and Zoom lifecycle have different write patterns, owners, and failure modes. The cost: catalogue pages that show "next session" have to join across services, which is exactly what the Presentation API and the search indexers were for.

## The platform around that work

The learner application was built so that two APIs owned the screen and the Next.js frontend rendered what it was given. A Presentation API assembled every catalogue page: it queried Algolia and other catalogue services, applied entitlement and access filters, attached Schema.org JSON-LD, resolved copy, cached in Redis, and returned an ordered list of typed sections. A GraphQL API (Apollo Server on Koa) was the only public client contract, modelled pages rather than resources, and fanned out over internal REST to presentation, sessions, entitlements, identity, content, video, and the older website API. The Next app mapped each section type onto a composition, with GraphQL fragments colocated with the UI that needed them. Partner landings for health plans and aging offices were the same composer with a different page id and copy, so editorial and access changes did not require a frontend release.

I co-designed that split with the platform team and was code owner on the learner GraphQL and Presentation API cut, so the decision to put page layout in a Presentation API is one I share rather than one I claim alone.

Access was its own domain. Entitlements lived in DynamoDB with product types spanning partnership plans, subscriptions, trials, single sessions, staff, guides, complimentary, grandfathered, and scholarship grants. Payment webhooks created those records; the UI never did. Stripe and Razorpay each sat in a closed service that received webhooks, stored the raw event to S3 for the data lake, and created entitlements on subscription start and renewal. Nothing else called a card processor. I did not own payments; I mention it because the isolation boundary is why the content and embed work never had to think about PCI scope.

New HTTP services started from a shared template: TypeScript, Koa, structured logging, Prometheus, Sentry, Superstruct-validated config, Kubernetes probes, and one CI deploy path onto EKS. The content layer, sessions, entitlements, trials, partner grants, and payment adapters shared that floor, which is what let me review changes across those boundaries without each repository inventing its own conventions.

I was code owner and a contributor to the analytics event pipeline, including its integrations with Amplitude and Zendesk. Product analytics ran through a shared TypeScript event model with JSON Schema generated from the types, ULID event ids for idempotency, and an API Gateway to Kinesis Firehose to S3 ingest path. Forwarders sent subsets to Amplitude and to Zendesk so Guides and support staff had context without reconstructing a session from logs. Glue and Athena schema evolution limited nested objects, so some payloads stayed flat; a data-lake constraint leaked into the product contract.

## What was left unfinished

Identity never fully moved into the new learner app. Login still lived on the older Nuxt and Koa site, and the Next app leaned on its cookies.

Payments had an isolation boundary before it had coverage. The Stripe webhook types implemented in this generation were checkout completion for subscriptions and paid invoices. One-off purchases, cancellations, refunds, and plan changes were explicit TODOs when I left.

Multi-secret verification for partner-association tokens stayed a follow-up, so rotating a partner secret without a window of failed verifications was not yet possible.

Recommendations were Algolia retrieval with facet matching and access filters. The client could send feedback, and the API discarded it, with a note to send product events into Algolia Recommend later. The event schema anticipated a closed loop; the API did not close it.

There was no formal accessibility audit. Accessibility was practical: large type tokens, mobile-first layout, semantic landmarks, Headless UI for keyboard behaviour, and Testing Library's accessibility queries. For an audience over 50 I would have wanted contrast checks, 200% zoom, and screen-reader passes as a release gate rather than a backlog item.

## How AI was used

During my time there, none of the services I worked on used a language model. Search was Algolia full text plus facets, recommendations were retrieval plus access policy as described above, and in-class chat was social chat between learners. GetSetUp's current site describes an AI class assistant built into its video player; it was not present in the services I worked on, and I cannot speak to it. There was no AI step in CI either: the pipelines were lint, locale validation, build, test, image, deploy, with generated GraphQL types and Superstruct boot validation as the gates.

## Technologies and standards

| Layer | Choices |
| --- | --- |
| Content (owned) | Node.js, TypeScript, Superstruct, PostgreSQL, Jest, semi-RPC procedures |
| Sessions (owned) | TypeScript service on the shared Koa template, DynamoDB, S3 for notes and recordings, SNS and SQS domain events, Zoom API, scheduled populate job |
| Admin (owned) | Next.js, Tailwind, Headless UI, SWR, React Hook Form, Uppy to S3, dedicated Algolia index |
| Embedded (owned) | Next.js React components and player controls mounted on a partner origin |
| Partner attribution (owned) | Association tooling, business-development lead and member conversion interface, HS256 JWT partner-association tokens |
| Learner API (contributed) | GraphQL on Apollo Server and Koa, GraphQL Code Generator, Presentation API for page assembly, Redis cache, query depth limit |
| Learner UI (team) | Next.js, React, TypeScript, URQL with SSR, Linaria, Headless UI, Storybook as test fixtures |
| Access and payments (team) | Entitlements in DynamoDB, Stripe and Razorpay in isolated services, ConfigCat flags |
| Delivery (team) | GitHub Actions, Docker, ECR, EKS, AWS CDK, shared Koa service template, GitHub Packages |
| Observability (team) | Sentry, Prometheus, Pino, Honeycomb over OpenTelemetry, Apollo Studio, Amplitude, Zendesk |

Standards that mattered to the work I owned: Superstruct runtime validation at every service boundary and at boot; JWT (RFC 7519) for partner-association tokens; Schema.org markup for classes and online events; JSON Schema generated from TypeScript for analytics events; semver for shared libraries published to GitHub Packages; and PCI scope reduction by keeping processors in their own services.

## Results

I do not have learner or partner usage figures for this work and will not guess. What changed:

| Outcome | What changed |
| --- | --- |
| One content contract | The learner app, search indexers, admin, and partner embeds read catalogue content from one procedure API on PostgreSQL |
| Embedded shipped as a client | Partners presented GetSetUp classes on their own origin using shared controls; the AOL pilot ran on that path during my tenure, and GetSetUp listed AOL as a live embed partner in November 2023 |
| Attribution became operable | User-to-partner associations were recorded, surfaced as leads, and converted into partnered members through a dedicated interface rather than reconstructed afterwards |
| Stores stayed separate | Catalogue content and Zoom-backed sessions kept independent stores and lifecycles |
| Operators stopped joining APIs by hand | Admin search and export ran on a dedicated index |
| Payments unreachable from the UI | Card processors sat behind closed services (team outcome, not mine) |

## What I would do differently

Close the recommendation loop before shipping a "recommended" label. Storing the feedback the client already sent would have cost little and made the later Algolia Recommend step a data question rather than a rebuild.

Treat accessibility as a pipeline for this audience: contrast, zoom, and screen-reader checks as gates, on top of the large-type defaults.

Make the flat analytics payloads an explicit decision in the event model rather than a Glue and Athena constraint discovered downstream.

Plan the identity move as a strangler around the older site's cookie auth from the start, rather than leaving the new learner app dependent on it.
