EN

United States (EN)

Australia (EN)

Canada (EN)

Canada (FR)

France (FR)

Germany (DE)

Ireland (EN)

United Kingdom (EN)

EN

United States (EN)

Australia (EN)

Canada (EN)

Canada (FR)

France (FR)

Germany (DE)

Ireland (EN)

United Kingdom (EN)

Blog

How a team of only 10 engineers built Rippling’s PEO from scratch

Author

Published

February 21, 2022

Updated

December 17, 2024

Read time

3 MIN

seo_image_5e2e1f14_aBAMAKUq0
Blog_PEO_Engineering_inline-1

Clients prefer to join a PEO for two reasons:

  1. They don’t have to worry about keeping track of the myriad local, city, state, and federal compliance rules when hiring and managing employees in a remote-first world.

  2. The PEO can provide high-quality, affordable health coverage on behalf of our worksite employees.

PEOs can also solve an extremely messy problem for the government. To ensure compliance and accurate tax collection for small businesses, the government holds one PEO responsible, instead of thousands of smaller companies. Such consolidation saves the government time and money.

PEOs, by nature, create an unusual and complex multi-tenancy problem. How do we ensure that the data of one company is not accessed by another company? How do we ensure that our existing SaaS product suite, which is built for one company, can still be used for PEO clients where employees belong to multiple companies? 

The solution starts with Rippling’s SaaS suite architecture.

Rippling’s hub and spoke backend architecture

The Rippling backend is set up as a “hub and spokes” model. The hub corresponds to core Rippling features like Rippling accounts, company and user information, and onboarding/offboarding flows. The spokes are individual services like payroll, benefits, or user provisioning in third-party apps.

Since a PEO requires us to file for taxes across all PEO clients under a single PEO company, we needed to modify the multi-tenant nature of the above hub and spoke architecture to support combined tax filings for PEO. However, this became more complex as the PEO filings requirement is not uniform across all states.

PEOs, by nature, create an unusual and complex multi-tenancy problem. How do we ensure that the data of one company is not accessed by another company? How do we ensure that our existing SaaS product suite, which is built for one company, can still be used for PEO clients where employees belong to multiple companies? The solution starts with Rippling’s SaaS suite architecture.

Blog_PEO_Engineering_inline-2

Source: https://www.napeo.org

The above image shows the tax reporting requirement across all US states as of 2019. Without getting into technicalities, you can imagine all grey and white-striped states as PEO reporting states and every other as a client reporting state.We were tasked with building a platform with the following requirements:

  1. An employee can belong to 2 companies (client and PEO company)

  2. A PEO company should act like a parent company of the client companies but employees should not be directly tied to the PEO company

  3. For PEO reporting states, taxes will be paid to PEO company’s state account after the switch

  4. For client reporting states, taxes will be paid to the same client’s state account even after switching to PEO

  5. Maintain data consistency of company and employees before and after the client joins the PEO

To create a robust and scalable multi-tenant architecture to support the following needs, we had to first understand Rippling’s existing tax filings architecture.

Rippling’s tax filings: under the hood

Payroll and filings are the most important and complex functionalities for a company. A PEO can make them even more complicated. Here’s how payroll and filings are handled in Rippling.

Blog_PEO_Engineering_inline-3
Blog_PEO_Engineering_inline-4
Blog_PEO_Engineering_inline-5
Blog_PEO_Engineering_inline-6
Blog_PEO_Engineering_inline-7
Blog_PEO_Engineering_inline-8

Disclaimer

Rippling and its affiliates do not provide tax, accounting, or legal advice. This material has been prepared for informational purposes only, and is not intended to provide or be relied on for tax, accounting, or legal advice. You should consult your own tax, accounting, and legal advisors before engaging in any related activities or transactions.

Author

Sachin Bhat

Engineering

Explore more

seo_image_9cb6be56_aBAMAKUq0
Aug 21, 2025
|
9 MIN

10 Lessons: Containerizing our Django Backend

Discover 10 key lessons learned from containerizing Rippling's Django backend to enhance scalability and performance.

Graphic illustration of a ripple pattern formed with converging lines
Aug 21, 2025
|
6 MIN

How a PEO can help you manage a remote team

Learn what a PEO is and how a professional employer organization will help you manage remote employees.

seo_image_b1ed480e_aBAMAKUq0
Aug 21, 2025
|
8 MIN

Quality Week: 5 days for engineers to solve the things that annoy them most

Learn how Rippling engineers roll up their sleeves to debug, purge dead code, and improve existing processes during Quality Week.Learn how Rippling engineers roll up their sleeves to debug, purge dead code, and improve existing processes during Quality Week.

Graphic illustration of ripples formed with converging lines
Aug 21, 2025
|
12 MIN

The 10 best Auth0 Alternatives with choosing tips (2025)

Discover the best Auth0 alternatives, including Rippling, JumpCloud, and OneLogin, to enhance your authentication and identity management solutions.

seo_image_295c0224_aBAMAKUq0
Aug 21, 2025
|
6 MIN

Rippling’s 6 Pillars of Policy: How to create a bulletproof expense policy

Learn how to build an expense policy from an expert. See real examples of how to stop out-of-policy spending, improve compliance, and get real-time expense reports.

seo_image_986781d2_aBAMAKUq0
Aug 21, 2025
|
10 MIN

7 Lessons from building our RADIUS server in the cloud

7 crucial lessons learned from building Rippling's Radius server in the cloud for increased security and performance.

seo_image_f81b7732_aBAMAKUq0
Aug 21, 2025
|
13 MIN

The making of: Rippling+

Discover how a team transformed an ambitious idea into Rippling+, the innovative platform redefining professional learning and community engagement.

seo_image_bc6b2f90_aBAMAKUq0
Aug 21, 2025
|
7 MIN

Building Editors in React Applications

Learn how to build efficient and user-friendly editors in React applications with insights from Rippling's development team.

See Rippling in action

Increase savings, automate busy work, and make better decisions by managing HR, IT, and Finance in one place.