Skip to content
All case studies
StorageHR and payroll software

How an HR and payroll software company gave its payroll runs shared storage with Amazon EFS

An HR and payroll software company in Abuja gave its serverless payroll runs shared, lasting storage with Amazon EFS. A month-end run now takes 25 minutes instead of 45, and the system handled 750 tasks at once in load testing.

ClientHR and payroll software company, Abuja
DurationLive in production
RegionAWS
CategoryStorage
Payroll storageHR and payroll software
25 minMonth-end payroll run, down from 45
750Payroll tasks at once in load testing, up from about 100
0Copies of payroll files between runs
2 yearsPayroll records move to S3 Glacier Deep Archive
THE PROBLEM

The problem.

Our client is an HR and payroll software company in Abuja. Businesses use its software to manage their staff and to run payroll with the required statutory deductions, and it holds employee and salary data for each of them.

The company's month-end payroll run handles employee records, payroll input files, payslips and reports. With its previous hosting provider, compute stayed switched on around the clock, about 720 hours a month, even though payroll is concentrated in a few days at month end. A payroll run took 45 minutes, and the setup could handle about 100 processing tasks at once.

The company was moving payroll processing to AWS Lambda, where each function runs only when needed. That raised a storage question. Lambda's own storage disappears when a function finishes, but payroll needs files that several processing steps can share, and documents that must be kept safely for years under Nigeria's data protection law.

THE APPROACH

What we built.

01

Shared files with Amazon EFS

We used two kinds of storage, each for what it does best. Amazon Elastic File System (Amazon EFS) gives the payroll functions a shared file system. The functions run in private subnets in two Availability Zones and mount the file system through mount targets in both, using an access point that gives them one fixed directory and nothing else. Processing steps read and write the same payroll input files and working directories without copying them between runs. We chose Amazon EFS over temporary function storage because the files must outlast each function and be shared across them.

02

Documents in Amazon S3

Payroll documents, payslips and reports go to Amazon Simple Storage Service (Amazon S3), which keeps them durably across multiple Availability Zones. Payroll records are tagged when they are written, and an S3 Lifecycle rule filtered on that tag moves them to Amazon S3 Glacier Deep Archive after two years and deletes them a year later. We chose Amazon S3 for documents because it is built for durable object storage and lets retention follow the type of record, not just where it sits.

03

Database and front door

Application data is held in Amazon Aurora PostgreSQL-Compatible Edition, with a standby in a second Availability Zone. Requests reach the functions through Amazon API Gateway, behind Amazon CloudFront and AWS WAF.

04

Encryption, access and monitoring

Every store is encrypted with AWS Key Management Service (AWS KMS), using a dedicated key for HR documents. Database credentials are kept in AWS Secrets Manager, and AWS Identity and Access Management (AWS IAM) roles allow each function only the files and documents it needs. The file system can only be reached from the payroll functions. Amazon CloudWatch alarms watch for errors, throttling and database load, and everything is defined in AWS CloudFormation and released through a reviewed pipeline.

STACK

AWS services in this engagement

Amazon EFSAmazon S3Amazon S3 Glacier Deep ArchiveAWS LambdaAmazon Aurora PostgreSQLAmazon API GatewayAmazon CloudFrontAWS WAFAWS KMSAWS Secrets ManagerAWS IAMAmazon CloudWatchAWS CloudFormation
THE OUTCOME

The results.

Faster payroll. A month-end payroll run now takes 25 minutes, down from 45, measured from application logs and Amazon CloudWatch metrics for equivalent workloads.

More capacity at month end. The solution handled 750 payroll tasks at once in load testing, up from about 100, against a target of 500.

Shared files that last. Payroll files persist between processing steps and are shared through Amazon EFS, with no copying between runs.

Records kept for the right time. Payroll records move to Amazon S3 Glacier Deep Archive after two years and are deleted after three, automatically.

LESSONS LEARNED

What we learned.

Early in the project we found that payroll documents and processing files needed to persist beyond each individual function run. We now separate object storage needs from shared file storage needs at the design stage of every serverless project, so the right storage is planned from the start.

THE PARTNER

About Manthic.

Manthic Technologies is an AWS Advanced Tier Services Partner based in Lagos, Nigeria. We design, build and run solutions on AWS for our clients.

WANT SOMETHING SIMILAR?

Tell us what you're trying to ship.

A 30-minute scoping call with the engineers who would do the work.