Abuk, an ebook and audiobook service on iOS, Android and the web, grew from about 50,000 users to almost 600,000 while we worked on it, and the number keeps growing. On 17 November 2026 the iOS app held a 4.65 rating in the App Store from 5,987 ratings.
We took the product over from a previous contractor in poor condition and have been its tech lead since 2018. Over those years we moved the infrastructure from two clouds into one, rewrote almost all of the iOS app and part of the Android app, put the home feed on a shared cache and grew the backend test suite from 32 spec files to 258. This article goes through what we changed, in roughly the order a product of this kind runs into trouble, and ends with a checklist for owners of media apps that are starting to grow.
The starting point
Abuk sells a catalogue of ebooks and audiobooks through the abuk+ subscription and single purchases, with a reader and an audio player in each app. When we received it, the problems were the usual ones for an inherited product:
- the infrastructure was split between Google Cloud and AWS;
- content delivery had problems under the security rules;
- the home feed was slow, because the Rails cache lived inside each container and was wiped on every deploy.
A product in this state can still grow for a while. Then each new feature takes longer, store reviews start to complain about crashes, and every deploy carries some risk. This article goes through what we changed, area by area.
Two clouds into one
Running one product across two clouds doubles the places where something can go wrong. Access rules, monitoring, billing and network paths all exist twice, and content that has to cross between them is where security rules usually bite.
We moved all of Abuk’s infrastructure to AWS. The services run on ECS, the database on RDS, and files live in S3 behind CloudFront. Audio is served through CloudFront too. CI/CD runs in GitLab. During the move we reworked security and rewrote the code that needed it, so the result is more than the old setup copied into a new account.
If you are planning a similar move, our DevOps services page describes how we approach infrastructure work on live products.
Rewriting the apps users see
Users judge an audiobook app by the reader, the player and how the app behaves on their phone. We rewrote almost all of the iOS app and part of the Android app.
On iOS that work brought a paginated reader, reading and listening progress synced between devices, iPad support, deep links and protection of book text from screen recording.
On Android, the app targets SDK 35 and is prepared for 16 KB memory pages. Downloads run on a new library, Google Play subscriptions were rebuilt, and we worked through ANRs and crashes. After feedback from a blind user, we reworked the app for TalkBack. Accessibility is easy to postpone on a growing product, and one message from a real user is often what moves it up the list.
A rewrite is expensive. It pays off in the parts where patching would cost more over the next year than writing the code again. Our app takeover services page explains how we start with inherited code.
The home feed and the cache
The home screen is the most requested screen in a book app, and on Abuk it was the slowest. After we moved it to a shared Redis cache that never stores prices, p95 for the home feed went from 18.4 s to 2.8 s, the average from 3.8 s to 1.6 s, and the slowest request from 52 s to 5 s.
The full story, including why prices stay out of the cache and how to set up a shared cache in Rails, is in a separate article: Caching a home feed without caching prices. Beyond the home feed, the catalogue is gzipped and cached, and covers are served as WebP, which keeps the first screen light on mobile networks.
Tests: from 32 spec files to 258
At the end of 2025 the backend had 32 spec files. In November 2026 it had 258.
A number of spec files is a rough measure, and we don’t present it as coverage. What it shows is direction. On a product with a growing user base, the backend handles subscriptions, purchases, store notifications and content access. A change in any of those areas can lock paying users out of books they bought, and without tests the only way to find out is a support ticket.
If you are starting a test suite on an inherited backend, we recommend adding specs where a mistake costs the most: billing logic, access rules and the endpoints the apps call on every launch. After that, give each bug fix a spec that reproduces the bug. A suite that grows from real failures stays relevant.
Tests on the backend are one layer. Abuk also has independent QA on real devices, with test cases kept in the repository, Crashlytics for the apps and CloudWatch for the servers. Our QA and testing page describes this setup in more detail.
Billing and content protection under growth
Take a billing edge case that hits one user in ten thousand. At 50,000 users that is about five people. At 600,000 it is about sixty, and each of them writes to support.
On Abuk, plans are reconciled between the admin panel, Google Play and the App Store. Access follows the subscription state in the store, including grace periods and cancellations. Promotional prices are automated, and promo codes and free copies can be handed out by link. Our article on one backend for App Store and Google Play subscriptions explains the general approach.
Content protection matters more as the catalogue becomes worth copying. Book files are encrypted with keys bound to the device, devices are verified through attestation, and the free preview of a book has a firm limit. The product also went through an external penetration test, we fixed its findings, and a repeat test followed.
What changed, in one table
| Area | Before | Now |
|---|---|---|
| Users | about 50,000 | almost 600,000 and growing |
| Infrastructure | split between Google Cloud and AWS | all in AWS (ECS, RDS, S3, CloudFront) |
| iOS app | inherited code | rewritten almost entirely |
| Android app | inherited code | rewritten in part, SDK 35, TalkBack reworked |
| Home feed p95 | 18.4 s | 2.8 s |
| Backend spec files | 32 (end of 2025) | 258 (November 2026) |
| Security | content delivery problems | reworked, external pentest, fixes, repeat check |
The App Store rating of 4.65 from 5,987 ratings is a snapshot taken on 17 November 2026. Store ratings change every day, so we always give the date with the number.
How the work is organised
A product of this size needs people who know it. On Abuk, a permanent team of developers, QA engineers, a business analyst and a project manager works on the product continuously. The work mixes regular updates for users with technical updates, security, performance and optimisation.
A growing app needs both streams at once. When a team ships only features, the infrastructure and the tests fall behind, and the next growth step breaks something.
You can read the full case on the Abuk case page, and our media and streaming app development page describes what we build for audio, video and reading products.
Checklist for a media app that is starting to grow
- Count your clouds and hosting accounts. If the product runs in more than one, write down why. If nobody can say why, plan a move to one.
- Serve media files from a CDN. Audio, book files and covers should reach users from CDN edge locations. Keep application servers for the API.
- Check where your cache lives. A cache inside each container or process starts empty after every deploy. Use a shared store such as Redis, and keep prices and access rights out of shared cache entries.
- Start backend tests where mistakes cost money. Billing, subscription state and content access come first. Add a spec with every bug fix.
- Reconcile subscription state with the stores. Your backend should follow what App Store and Google Play report, including grace periods, refunds and cancellations.
- Protect content in proportion to its value. Encrypted files, device-bound keys and a hard limit on previews make copying harder.
- Keep up with store requirements. Android target SDK and memory page changes, and iOS SDK updates, arrive every year whether or not you plan for them.
- Read store reviews as a bug tracker. Crashes, accessibility problems and billing confusion show up there before they show up in your metrics.
- Commission an external security test once the catalogue or user data becomes worth stealing, and ask for a repeat check after fixes.
- Plan both streams of work. Reserve time each month for technical updates alongside user-facing features.
FAQ
When does an audiobook app need to change its backend?
Usually before the team expects it. Signs that it is time: the slowest screens get slower as users grow, deploys make the app worse for a while, billing support tickets increase, or content delivery depends on infrastructure that nobody fully understands. On Abuk the trigger points were a split infrastructure and a home feed whose cache vanished on every deploy.
Should we move our app’s infrastructure to one cloud?
If the product runs in two clouds by accident, as often happens after a change of contractor, moving to one usually simplifies security, monitoring and billing for the infrastructure. If two clouds are a deliberate choice for redundancy or a specific service, keep them and document why. For Abuk we moved everything to AWS and reworked security during the move.
How many backend tests does a mobile app need?
There is no fixed number. Start with billing, subscription state and content access, then add a test every time you fix a bug. On Abuk the backend went from 32 spec files at the end of 2025 to 258 in November 2026.
Is it worth rewriting an inherited mobile app?
Only the parts that would cost more to patch than to rewrite over the next year. On Abuk we rewrote almost all of the iOS app and part of the Android app. For a working backend with paying users, improving it in place is usually less risky than a full rewrite, because every change can be tested against live behaviour.
What would you like to do next?
Discuss a project
Tell us about the task. Within one working day we reply with questions or a first view on scope and cost.
Ask a question
A short question about your app, website or idea. An engineer replies by email.
Get new articles
New articles and case studies by email, no more than once a month. Unsubscribe at any time.