Tag-based cache inside Laravel repositories

Available to Premium members only
  • avatar
  • 89 Views
  • 12 mins read
Preview post image

Working with cache can drastically improve the performance of an application, especially when dealing with data that doesn't change too often. While Laravel provides solid support for caching through multiple drivers, it doesn't offer native support for cache tags. To work around this limitation, we'll integrate Symfony's Cache component, which brings tag support and fits well into the repository pattern we've already established. In this article, we'll build on the existing structure and focus on using cache tags to group and clear related data more efficiently.

OpenAI hits $10 Billion in Annual Recurring Revenue

  • 44 Views
  • 1 min read
Preview post image

OpenAI has surpassed $10 billion in annual recurring revenue, according to a company spokesperson. This milestone comes less than three years after the launch of ChatGPT. The reported figure includes revenue from consumer-facing products, ChatGPT business offerings, and the application programming interface. It excludes licensing income from Microsoft and large one-time agreements.

Understanding HMAC signatures and how they work

Available to registered members only
  • avatar
  • 245 Views
  • 4 mins read
Preview post image

HMAC, short for Hash-based Message Authentication Code, is a method used to check that a message is both authentic and unmodified. It's a common tool in webhooks, APIs, and any place where secure communication between systems matters. The idea behind HMAC is to use a shared secret key along with a hashing algorithm to create a unique signature for a message. This signature acts like a stamp of trust, if anything changes in the message or if the wrong key is used, the signature won't match.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

Getting started with CQRS in PHP

  • avatar
  • 224 Views
  • 5 mins read
Preview post image

CQRS stands for Command Query Responsibility Segregation. It's a pattern that separates how an application reads data from how it writes data. This approach can help structure code more clearly, especially in systems that deal with complex business logic or need to scale certain operations differently.

Organizing Laravel helpers using Composer

  • avatar
  • 966 Views
  • 4 mins read
Preview post image

As a Laravel project grows, it is common to see the same small functions repeated in multiple places such as formatting values, checking routes, or handling basic text transformations. Instead of scattering these across controllers or traits, a more structured approach is to collect them into a dedicated helper file. While Laravel does not include a default setup for this, Composer's autoload configuration makes it straightforward to register a custom helper file. This ensures those functions are always available throughout the application without manual includes.

Using the DS18B20 temperature sensor with Arduino Nano

  • avatar
  • 445 Views
  • 7 mins read
Preview post image

The DS18B20 is a digital temperature sensor that comes in two versions: a small TO-92 package, and a waterproof variant often encased in a metal tube with a long cable. Both provide digital temperature readings and can be used in many indoor and outdoor projects. The DS18B20 uses a protocol called 1-Wire, which only needs one data line to communicate and can support multiple sensors on the same pin.

Understanding the role of an Engineering Manager

  • avatar
  • 372 Views
  • 1 Like
  • 6 mins read
Preview post image

Becoming an engineering manager is not just about climbing the ladder. It is a complete shift in responsibility. You are no longer measured by the code you write or the tasks you complete. Now you are accountable for how the entire team performs. You can delegate work, but you are still responsible for results. If no one owns a problem, you do. That is not an extra detail, that is the job.

Maximizing MySQL performance with indexes

  • avatar
  • 504 Views
  • 2 Likes
  • 6 mins read
Preview post image

Indexes are one of the tools MySQL uses to make data access faster. Without them, the database engine has to scan every row in a table to find matching records. This kind of full scan can be slow, especially when dealing with large datasets. Indexes allow MySQL to skip most of the table and go straight to the rows it needs. They're not just about speed, though. Indexes also help with enforcing uniqueness, sorting results, and supporting specific types of queries. But they come with trade-offs, like extra storage use and slower write operations.

Getting started with Memcache for PHP

  • avatar
  • 519 Views
  • 1 Like
  • 5 mins read
Preview post image

Memcache is a caching system that stores data in memory to make applications faster and more efficient. It works across multiple languages, including PHP, Python, Ruby, and others. In the context of PHP, it can reduce database load and speed up page rendering by keeping frequently accessed data available in memory. This article focuses on how to use Memcache specifically with PHP.

Repository cache in Laravel

  • avatar
  • 1.3K Views
  • 1 Like
  • 11 mins read
Preview post image

In modern web applications, optimizing data retrieval is crucial to improving performance and user experience. One common practice is caching database queries to reduce redundant calls to the database. While Laravel offers built-in caching features, in some cases, you may want to implement custom repository caching manually to better control your caching mechanism. This article will walk you through implementing repository caching in Laravel 12, explaining the steps involved and how to achieve better performance in your application.