- Home
- Case Studies
- Tibica: Serverless Latency Optimization
Tibica: Serverless Latency Optimization
55%
increase in user workflow speed
58%
boost in performance
50%
total cost savings
Key Insights
Location
Europe
Project duration
4 weeks
Industry
SaaS
Technologies used
AWS API Gateway, Amazon DynamoDB, AWS Lambda, AWS X-Ray, VTL (Velocity Template Language)
Table of Contents
The Customer and The Challenge
Tibica is a serverless application marketplace offering cloud-native tools for teams that want to skip infrastructure management. Their product line covers headless content management, code versioning, and access control, all built on AWS Lambda and designed to scale without dedicated servers.
In August 2023, Tibica reached out to Perfsys with a specific problem. Their Lambda functions were doing their job — scaling on demand, keeping costs predictable — but response times were slow. Lambda cold starts were adding nearly two seconds of delay to multiple workflow steps, and users were feeling it.
Tibica's setup at the time routed all requests through an API Gateway to Lambda integration, with a custom Lambda authorizer handling access control. Functional, but not fast.
The Solution
Perfsys started with a full analysis of Tibica's application workflows using AWS X-Ray , mapping exactly where time was being lost. The finding was clear: the majority of requests were simple GET operations with no complex processing logic. They didn't need Lambda at all.
The fix was to bypass Lambda entirely for those operations and query DynamoDB directly through AWS API Gateway using Velocity Template Language (VTL). VTL lets API Gateway communicate with DynamoDB without invoking a Lambda function, which eliminates cold start latency at the source. The same approach was applied to straightforward PUT and POST operations.
No infrastructure was rebuilt. The change was at the integration layer.
Results
The impact was immediate across all measured metrics.

GET response times dropped by 65%, from 1.74 seconds to 0.61 seconds. Write operations improved from 2.69 seconds to 1.99 seconds. The average user workflow duration halved from 42.8 seconds to 20.4 seconds. And with fewer Lambda invocations, compute costs fell by 50%.
Conclusion
Cold starts are a well-known serverless trade-off, but they're not always unavoidable. For requests that don't require business logic, bypassing Lambda and querying the database directly is a faster and cheaper pattern. The key is knowing which requests those are — and that's what the AWS Cloud Assessment surfaced for Tibica.
This was the second optimization Perfsys carried out for Tibica. You can read about the first one — migrating Lambda functions from x86_64 to arm64 for a 17% performance gain and 20% cost reduction — in the AWS Performance Optimization case study . And to see how the full Tibica platform was built from the ground up, visit the Serverless Cloud Marketplace case study .
Perfsys helps startups and SMBs find and fix the bottlenecks — without rebuilding what's already working.
FAQ
A Lambda cold start happens when AWS needs to initialize a new execution environment for a function that hasn't run recently. This initialization adds latency — typically between 200ms and 2 seconds depending on the runtime and function size. Cold starts are most noticeable in applications where users trigger multiple Lambda functions in sequence, as the delays compound across each step of the workflow.
Lambda cold starts were adding nearly two seconds to each affected request in Tibica's case. By routing simple GET, PUT, and POST operations directly from API Gateway to DynamoDB via VTL, those requests no longer trigger a Lambda function at all. No function initialization means no cold start penalty. For operations that don't need business logic, this is a faster and more cost-efficient path.
VTL (Velocity Template Language) is a templating language that API Gateway uses to transform requests and responses. When integrated with DynamoDB, it allows API Gateway to construct database queries directly — without a Lambda function in the middle. It's a native AWS capability that's well-suited for simple CRUD operations where the request just needs to be mapped to a database action.
No. Direct API Gateway to DynamoDB integration is appropriate for stateless, simple operations: reads, writes, and updates that follow a predictable pattern and don't require conditional logic, external API calls, or data transformation. Functions with business logic, authorization checks, or complex processing still belong in Lambda. The AWS X-Ray analysis identified which of Tibica's functions fit the simpler profile.
AWS X-Ray is the right tool for this. It traces requests end-to-end across services, showing exactly where time is spent in each part of a workflow. In Tibica's case, X-Ray made it clear that the majority of requests were simple GET operations with no logic that required Lambda. Without that data, the optimization opportunity would have been much harder to identify.
Tibica's Lambda compute costs dropped by 50% after the migration. The savings came from two places: fewer Lambda invocations overall, since simple operations no longer triggered functions, and shorter execution times for the Lambda functions that remained. DynamoDB request costs did increase slightly, but the net result was a 50% reduction in total compute spend for these workflows.
This was the second engagement Perfsys completed for Tibica. The first involved migrating Lambda functions from x86_64 to the arm64 architecture, which delivered a 17% improvement in Lambda response times and 20% cost savings. The two optimizations targeted different layers: architecture choice in the first case, integration pattern in the second. Together they significantly improved the platform's overall performance and cost profile. You can read about the architecture migration in the AWS Performance Optimization case study.
Recommended for You
AWS Experts, On-Demand
Need to move fast? Our cloud team is ready to scale, secure, and optimize your systems. Get serverless expertise, 24/7 support, and seamless CI/CD pipelines when you need it most.
Please accept cookies to load the booking widget.
