Blog
Engineering
4
minutes

Optimizing Logs Interfaces: Our Approach with React and Front-End Engineering

In this article, discover how the Qovery engineering team built a high-performance Logs Interface to handle thousands of lines of data efficiently.
Rémi Bonnet
Software Engineer
Summary
Twitter icon
linkedin icon

Recently, I dedicated quite some time at Qovery to developing a technically challenging and complex feature: Logs Interface.

In this post, I'll explain how it works and share some design and front-end tips for efficiently rendering heavy resources in React — that also apply to other front-end stacks.

Perspective

We have two types of application logs: Deployment and Running logs.

Both work similarly, though the Running logs contain more complex row structures and include advanced filtering options.

At Qovery, we help technical teams automate infrastructure and simplify deployments. Log analysis is an essential part of that workflow, giving developers clear insights to troubleshoot and improve their applications directly from the platform.

In this context, the main challenges are handling high volumes of logs with thousands of lines per session, managing performance bottlenecks, and ensuring the user experience supports these optimisations.

Rendering Strategy

Too many DOM nodes can cause browser freezes

The page can contain more than 10.000 lines — rendering them all at once can seriously impact performance. Here are two possible solutions:

  • Virtualization
    This approach renders only the elements visible in the viewport. However, it struggles with variable-height content like multi-line logs. Libraries like virtua or @tanstack/virtual are commonly used.
  • CSS content-visibility
    A property that lets the browser skip rendering elements until they are visible. It's performant but not ideal for long lists since everything stays in the DOM. You can learn more about it in this article.

Both approaches have limitations with variable-height content in our case, so we developed our own approach using these rendering optimizations:

  • Debounced rendering with WebSockets
    Logs arrive one by one through a WebSocket. Instead of rendering every new log immediately, we update the DOM once per second. This reduces the number of renders.
  • Render only a subset of logs initially
    On first load, we only render the last 500 logs. This avoids performance issues caused by rendering too many DOM nodes. Users can still load more logs if needed.

Using this approach, we achieve:

  • 108ms (optimized) vs 1084ms (unoptimized)
  • That's a 90% reduction in rendering time

Memory usage and responsiveness see similar improvements.
You can try the demo here and use the performance console tool to see the difference.

Keep row elements simple and minimize redundant DOM elements

Try to keep each row as simple as possible by avoiding unnecessary wrappers or deeply nested elements. This helps reduce DOM size and improves rendering performance.

For example, here's how we optimized icon rendering in each row:

  • Use the use element to reference a shared SVG
    This prevents repeating the same markup and reduces DOM complexity. See the example below.
  • Use font icons
    They are lightweight and easy to style across the app.

<svg id="logs-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <path d="M13 12h8" />
  <path d="M13 18h8" />
  <path d="M13 6h8" />
  <path d="M3 12h1" />
  <path d="M3 18h1" />
  <path d="M3 6h1" />
  <path d="M8 12h1" />
  <path d="M8 18h1" />
  <path d="M8 6h1" />
</svg>

<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <use href="#logs-icon" />
</svg>

Better log navigation with simple UI indicators

To help users follow what's happening in the logs, we added small visual cues, similar to what you'd see in messaging apps like Slack.

  • New logs indicator
    When the user scrolls inside the log list, we pause the rendering of new logs. A button appears at the bottom to let them know that new logs are available and can be resumed when clicked.
null
  • Previous logs indicator
    Since we only render the last 500 logs by default, a button appears at the top of the list when the user scrolls up, allowing them to load previous logs if needed.
null
  • Local status indicator
    We show whether logs are loading, streaming, paused, or finished. So users always know what's going on.
null

These visual indicators, combined with our rendering optimizations, create a comprehensive solution that balances performance with usability.

Conclusion

These techniques have significantly improved our Logs Interface performance. The biggest wins came from design choices - deciding what not to render, rather than optimizing how we render everything.

We have some other optimizations in the pipeline, but this is a solid foundation.

Thanks for reading, and shoutout to my Qovery teammates who built this with me.
Don't hesitate to reach out if you have questions or want to see more about our product!

Share on :
Twitter icon
linkedin icon
Ready to rethink the way you do DevOps?
Qovery is a DevOps automation platform that enables organizations to deliver faster and focus on creating great products.
Book a demo

Suggested articles

Qovery
3
 minutes
We've raised $13M Series A to make DevOps so simple, it feels unfair

I'm excited to announce our $13M Series A, led by IRIS and Crane Venture Partners with support from Datadog founders and Speedinvest. This investment will fuel our mission to make DevOps simple and scalable, expand in the US and Europe, and accelerate product innovation.

Romaric Philogène
CEO & Co-founder
Observability
 minutes
Qovery Observe is Here: Your Deployments, Your Data, Your Visibility

Monitor your deployments with Qovery Observe: real-time metrics, logs, and events, directly integrated with your AWS applications and containers.

Julien Dan
Technical Product Manager
DevOps
9
 minutes
Top 10 Fargate Alternatives: Simplify Your Container Deployment

Tired of complex cloud setups? Explore the top 10 Fargate alternatives and discover how Qovery can simplify your container deployment, saving you time and money.

Mélanie Dallé
Senior Marketing Manager
Compliance
DevSecOps
12
 minutes
AWS HIPAA Compliance: A Comprehensive Guide & Checklist

Learn how to achieve and maintain HIPAA compliance on AWS with this comprehensive guide. Understand the shared responsibility model, essential architectural principles, and a practical checklist to protect PHI and avoid costly compliance violations. Discover how automation can reduce human error and streamline your security posture.

Mélanie Dallé
Senior Marketing Manager
DevOps
8
 minutes
Top 10 DuploCloud Alternatives: Choosing a Better Platform for Your DevOps Needs

Looking for a DuploCloud alternative? Explore why a full-stack platform like Qovery offers a faster, more developer-friendly solution. Compare the top 10 options to find a platform that simplifies DevOps and accelerates your deployments.

Mélanie Dallé
Senior Marketing Manager
Azure
9
 minutes
The Essential Guide to Azure Infrastructure, Monitoring, and Management Tools

Master Azure infrastructure management with this comprehensive guide. Learn the four critical pillars - governance, cost control, security, and operations - and discover the essential native and third-party tools needed to scale your cloud strategy effectively.

Mélanie Dallé
Senior Marketing Manager
Cloud
10
 minutes
Cloud Sprawl Explained: Taming Uncontrolled Cloud Growth

Tame uncontrolled cloud growth and regain control of your infrastructure. Learn the causes of cloud sprawl, its impact on your budget and security, and strategies to build a more sustainable cloud environment.

Mélanie Dallé
Senior Marketing Manager
DevOps
9
 minutes
Top 10 Northflank Alternatives: Finding the Right DevOps Platform

Looking for a Northflank alternative? Discover why Qovery stands out as the #1 choice. Compare features, pros, and cons of the top 10 platforms to simplify your deployment strategy and empower your team.

Mélanie Dallé
Senior Marketing Manager

It’s time to rethink
the way you do DevOps

Say goodbye to DevOps overhead. Qovery makes infrastructure effortless, giving you full control without the trouble.