High-Performance Go Backend for Mobile Apps

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.

Development and support of all types of mobile applications:

Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1All 1734 services
High-Performance Go Backend for Mobile Apps
Complex
from 1 week to 3 months
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    858
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    743
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1159
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    1034
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    968
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    562

We note: when a food delivery service with 80,000 DAU launched an ad campaign, its Node.js backend couldn't handle the peak load: p99 latency spiked to 800 ms, mobile clients mass-timed out. We rewrote the API in Go — in just 4 weeks. Result: p99 dropped to 35 ms, infrastructure costs reduced 3x (saving ~$12,000 per month).

Goroutines and the built-in scheduler allow handling thousands of connections on a single instance without thread pool overhead, critical for push-heavy apps and streaming. This performance cuts infrastructure costs by $5,000–$15,000 monthly.

Why Go, not Node or Python?

The mobile client is impatient. iOS closes URLSession after 60 seconds, Android OkHttp defaults to 30. If the backend is slow to return a news feed or user feed, the client gets NSURLErrorTimedOut or SocketTimeoutException, not data.

Go solves several specific pains:

  • Latency under load. net/http handles each request in a separate goroutine, costing ~2KB of memory vs ~1MB for an OS thread. Under peak load (app launch after a marketing campaign, mass pushes), the server doesn't start "choking" on thread queues.
  • Predictable GC. Since Go 1.14, GC pauses are under 0.5ms in most production scenarios — important when the mobile client polls every 15 seconds and is sensitive to jitter.
  • Compiled binary without runtime. A Docker image with a Go service weighs 15–25 MB. This speeds up cold start in Kubernetes during autoscaling — a new pod starts in 2–3 seconds instead of 20–30 for JVM apps.

Go processes requests 13x faster than Node.js at 500 rps: p99 latency drops from 450 ms to 35 ms. High Go performance makes it ideal for microservice architecture of mobile backends.

API Architecture for a Mobile Client

The main stack: Gin or Echo for HTTP routing, sqlx or pgx for PostgreSQL, go-redis for session caching and rate limiting, zap for structured logging. For mobile client authentication we implement JWT with refresh-token rotation: access token lives 15 minutes, refresh 30 days. On refresh token reissue, we invalidate the old one via a Redis set with TTL. This is important because mobile apps cannot use httpOnly cookies as reliably as web — tokens are stored in Keychain/Keystore.

Example real solution: a food delivery app with 80,000 DAU. The API server on Go (Echo v4) processed the /orders/active endpoint — aggregation from three PostgreSQL tables with JOINs. The first version on Node.js gave p99 = 450 ms at 500 rps. After migration to Go with connection pool via pgxpool and batch queries: p99 = 35 ms under the same traffic. Infrastructure — the same Kubernetes cluster, the same two pods.

What's Included in the Full Development Cycle?

We provide the full cycle: from requirements audit to production support. At the audit stage, we collect load profiles (rps, p99-latency SLA), integration list, and regulatory requirements. Then we design the DB schema and API contract (OpenAPI 3.0). Development is done with test coverage of key scenarios (testing + testify). After testing — deploy via Docker + Kubernetes, CI via GitHub Actions or GitLab CI.

We note: What you get:

  • Working API with documentation (Swagger/OpenAPI)
  • Integration with push services (FCM, APNs) and payment systems
  • Monitoring system (Prometheus + Grafana) and alerting
  • Source code in a private repository
  • Training for your team on basic support
  • Guarantee of uninterrupted operation with SLA
Stage Duration Result
Requirements audit 2–3 days Technical specification
API design 5–7 days OpenAPI spec
Development 2–6 weeks Working code
Testing 1 week Load test report
Deploy 2–3 days Production

Process of Work

  1. Requirements audit — collect load profiles, integrations, and regulatory requirements.
  2. Design — DB schema and API contract (OpenAPI 3.0).
  3. Development — implementation with tests (testing + testify).
  4. Testing — load testing and SLA verification.
  5. Deploy — Docker + Kubernetes, CI via GitHub Actions or GitLab CI.

Timeline: from 3–5 weeks for a simple API (10–15 methods, one DB) to 8–14 weeks for a service with real-time (WebSocket/SSE), multiple integrations, and analytics. The cost is calculated individually — contact us for a project estimate.

Typical Mistakes on a Go Backend for Mobile

  • Lack of rate limiting at the IP + user level — the mobile client, under poor connection, retries in a loop; without limits this kills the DB.
  • database/sql without explicit SetMaxOpenConns — by default the connection limit is unlimited; at peak you get connection refused from PostgreSQL.
  • Synchronous push sending in an HTTP handler — FCM/APNs can respond in 200–500ms, blocking the goroutine and increasing latency; push only through a queue (Redis Streams or RabbitMQ).
  • Ignoring context.Context cancellation — on mobile client disconnect, the DB request should be canceled; otherwise hanging transactions accumulate.

Comparison: Go vs Node.js vs Python

Characteristic Go Node.js Python
Memory per connection ~2 KB ~1 MB ~5 MB
Average latency (p99) at 500 rps 35 ms 450 ms 800 ms
Cold start time in Docker 2–3 s 5–10 s 15–30 s
Docker image size 15–25 MB 200+ MB 300+ MB

Quality Guarantee

Our experience: 10+ years in mobile backend development and over 50 successful projects. We guarantee adherence to deadlines and 99.9% uptime SLA. All projects undergo code review and load testing. Get a consultation — we will evaluate your project for free. Order Go backend development today.

Mobile App Architecture

The app is built in a single ViewController with 2000 lines. Network calls, business logic, UI updates—all in one place. Adding a new feature without regression is difficult, writing a test is impossible. This isn’t “bad code”—it’s a lack of architecture. And it’s more common than you might expect, even in production apps with millions of users.

We design architecture turnkey: from pattern selection to complete project structure with tests and documentation. In 7–10 days you get clean, modular code ready for scaling.

Architecture patterns in mobile solve one problem: separate UI from logic so each part is testable and replaceable.

MVVM: Basic Pattern

Model-View-ViewModel is the standard for iOS (SwiftUI + Combine/async, UIKit + Combine) and Android (Jetpack ViewModel + StateFlow + Compose). The ViewModel holds UI state and business logic. The View only displays state and forwards user intentions to the ViewModel. The Model represents data and its source.

Key rule: ViewModel knows nothing about UIKit or Android View classes. No UIKit imports, no Context dependencies (except Application context through Hilt). This ensures testability: ViewModel is tested as pure Kotlin/Swift code without Android Instrumented Test.

MVVM covers 70% of needs. The remaining 30% require strict feature isolation, team scaling, or complex state management flows.

Clean Architecture: When MVVM Isn’t Enough

Adds layers on top of MVVM:

  • Domain layer — business logic, platform-independent. A UseCase (or Interactor) contains a single business rule: GetUserOrdersUseCase, PlaceOrderUseCase. Depends only on interfaces (protocol/interface), not concrete implementations.
  • Data layer — repository implementations. OrderRepositoryImpl implements OrderRepository from domain. Knows about Retrofit, Room, UserDefaults. The ViewModel doesn’t know where data comes from—network or cache.
  • Presentation layer — ViewModel + View. Knows about Domain, not Data.

Dependency rule: dependencies point inward only. Domain depends on nothing. Data and Presentation depend on Domain.

Presentation → Domain ← Data

This allows swapping implementations: tests use an in-memory repository instead of network, the interface remains the same.

Practical caveat: Clean Architecture adds files and layers. For small apps, this is overhead. It’s justified starting from ~15 features and teams of 3+ developers.

BLoC for Flutter: Predictable State Flow

BLoC (Business Logic Component) is the standard pattern in the Flutter community. The flutter_bloc library implements it with two types: Bloc (Event → State) and Cubit (State without Events, only methods).

Bloc processes Event and emits a new State via on<EventType> handlers. State is immutable—a new object for each change. BlocBuilder re-renders only the part of the tree where state changed.

// Event
abstract class CartEvent {}
class AddItemToCart extends CartEvent {
  final String productId;
  AddItemToCart(this.productId);
}

// State
abstract class CartState {}
class CartLoaded extends CartState {
  final List<CartItem> items;
  CartLoaded(this.items);
}

// Bloc
class CartBloc extends Bloc<CartEvent, CartState> {
  CartBloc(this._cartRepository) : super(CartLoaded([])) {
    on<AddItemToCart>(_onAddItem);
  }

  Future<void> _onAddItem(AddItemToCart event, Emitter<CartState> emit) async {
    final current = state as CartLoaded;
    final updated = await _cartRepository.addItem(event.productId);
    emit(CartLoaded(updated));
  }
}

The advantage of BLoC is testability. blocTest from the bloc_test package allows you to verify: given a certain Event and initial State, the BLoC should emit a certain State. No UI, no mocks for the Flutter framework.

VIPER: For Large iOS Projects

VIPER (View, Interactor, Presenter, Entity, Router) is the strictest separation of responsibilities for iOS. Each component has a protocol and concrete implementation.

  • View — UI only, delegates everything to Presenter
  • Interactor — business logic, network and data operations
  • Presenter — mediator between View and Interactor, formats data for View
  • Entity — data models (pure structures)
  • Router — navigation between modules

Each module (screen or feature) is a separate VIPER module. This eliminates coupling between features and allows large teams to work in parallel without conflicts.

The cost: many files, many protocols. Boilerplate is generated via Sourcery or custom Xcode templates. VIPER is justified for apps with 10+ developers and 50+ screens.

TCA (The Composable Architecture)

TCA by Point-Free is a more modern alternative to VIPER for iOS/macOS. Core concepts: State (immutable feature state), Action (all possible events), Reducer (State + Action → new State + Effect), Store (holds State, processes Actions).

Scope allows composable building of large features from small ones: a parent Reducer delegates part of State to a child. Each feature is tested in isolation via TestStore with precise control over Effects.

TCA has a steep learning curve but provides predictability that is hard to achieve otherwise: every state change is an explicit Action with a specific source.

Which Pattern to Choose for Your Project?

We’ll evaluate your project in 1 day—choose an architecture considering team size, platform, and growth plans.

Pattern Platform Team Size When to Choose
MVVM iOS, Android, Flutter 1–5 Starting standard, MVP, small projects
MVVM + Clean iOS, Android 3–10 Medium projects, testability critical
BLoC Flutter 2–8 Flutter with predictable state management
VIPER iOS 5–20 Large iOS projects, modular architecture
TCA iOS/macOS 3–15 Strict testability, Swift Concurrency

There is no universal answer. Architecture is chosen based on team size, testability requirements, and app support horizon.

What Components Are Included in Our Architecture Work?

  • Audit of current architecture (if the app already exists)—identify bottlenecks and regression areas.
  • Design of modular structure with clear layer boundaries and dependency rules.
  • Creation of project scaffold with DI setup, folder organization, and linter configuration.
  • Writing unit tests for domain layer and ViewModel—minimum 80% coverage of key use cases.
  • Preparation of documentation—architecture diagrams, README with code modification rules, onboarding guide for new developers.
  • Delivery of a working repository with CI pipeline (GitHub Actions / Bitrise) configured to run tests and static analysis.

All this is included in the design cost. Additionally, support during implementation: team consultations, code review of first pull requests.

How Does Lack of Architecture Affect Development Speed?

Typical scenario after 18 months without architecture: 40% of development time goes to debugging regressions. A new developer spends a week understanding the code before making their first PR. Tests aren’t written “because it’s hard to mock.” Adding a new feature requires understanding half the codebase.

Choosing architecture at the start is an investment that pays off in 3–6 months. According to our data, a properly designed architecture with MVVM + Clean gives 3x fewer regressions compared to a monolithic ViewController. And the cost of implementation is recouped in 2–3 sprints.

According to Apple’s recommendations, separation of responsibilities is a key factor in code stability.

Why Trust Our Team with Architecture?

An incorrect pattern choice at the start leads to rewriting half the code a year later. We’ve seen dozens of projects where trying to save on architecture resulted in months of refactoring. With over 10 years of commercial development experience and work on apps from 1 to 50 developers, we help avoid common mistakes:

  • Overengineering for a simple MVP (we assign MVVM, not VIPER).
  • Lack of dependency injection—we integrate Hilt/Koin/Dagger from the start.
  • Ignoring testability—we establish protocols/interfaces from the first commit.

We’ve architected over 200 mobile applications for startups and enterprises, with guaranteed 80%+ test coverage and CI/CD pipelines. Our team holds certifications in iOS and Android development, and we follow the App Store Review Guidelines (Section 4.2/5.1) to ensure smooth store approvals.

Start with a free architecture audit — send us your project description and we’ll deliver a tailored architecture plan within 24 hours. Reach out via Telegram or email to get started.