PolyScale.ai – Scaling MySQL & PostgreSQL with Global Caching

Scalegrid

Guest post by Ben Hagan from PolyScale.ai Data-driven applications span a wide breadth of complexity, from simple microservices to real-time event-driven systems under significant load.

228
228

Caching Across Layers in Software Architecture

DZone

The purpose of this article is to help readers understand what is caching, the problems it addresses, and how caching can be applied across layers of system architecture to solve some of the challenges faced by modern software systems.

130
130
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Cache-Control for Civilians

CSS Wizardry

To this end, having a solid caching strategy can make all the difference for your visitors. ?? How is your knowledge of caching and Cache-Control headers? That being said, more and more often in my work I see lots of opportunities being left on the table through unconsidered or even completely overlooked caching practices. Cache-Control. One of the most common and effective ways to manage the caching of your assets is via the Cache-Control HTTP header.

209
209

Data Fetching and Cache Maintenance With React-Query

DZone

To manage the server state in the frontend and sync with the backend, we need to update, cache, or re-fetch the data efficiently. cache react queryFetching data from the server and maintaining it is a very crucial issue in frontend development.

130
130

Design Of A Modern Cache—Part Deux

High Scalability

The previous article described the caching algorithms used by Caffeine , in particular the eviction and concurrency models. This allows for quickly discarding new arrivals that are unlikely to be used again, guarding the main region from cache pollution. cacheThis is a guest post by Benjamin Manes , who did engineery things for Google and is now doing engineery things as CTO of Vector.

186
186

Cache and Prizes

Alex Russell

Browsers will cache tools popular among vocal, leading-edge developers. There's plenty of space for caching most popular frameworks. The best available proxy data also suggests that shared caches would have a minimal positive effect on performance. Removal also creates a performance cliff for content that assumes cache availability. An unstated, but ironclad, requirement of shared caches is that they are uniform , complete , and common. Cache Back #.

75

How to Boost Redis With Local Caching in Java

DZone

You may also like: Java-Distributed Caching in Redis. Local caching is one of the most useful tactics for improving the performance of databases such as Redis. Redis developers who want to do local caching in Java will find that Redis doesn’t support this functionality out of the box. In this article, we’ll discuss how you can take advantage of local caching in Java and Redis with a third-party Redis Java client such as Redisson. Boost Redis.

149
149

Multiple Cache Configurations With Caffeine and Spring Boot

DZone

Caching is key for the performance of nearly every application. Distributed caching is sometimes needed, but not always. In many cases, a local cache would work just fine, and there’s no need for the overhead and complexity of the distributed cache. So, in many applications, including plain Spring and Spring Boot, you can use @Cacheable on any method and its result will be cached so that the next time the method is invoked, the cached result is returned.

100
100

Using Cache in Spring Boot

DZone

A solution to that problem could be using a cache, but how do you implement it? In that article, I explain how to use a basic cache in Spring Boot. java performance spring boot cacheLet's imagine a web application, where for each request received, it must read some configuration data of a database. That data doesn't change usually, but the application, in each request, must connect, execute the correct instructions to read the data, pick it up from the network, etc.

100
100

The Best Way to Completely Purge a Varnish Cache

DZone

performance cache varnish vclIt's cargo-cult fighting time! Today, we are going to look at a ban expression that you probably have used, and maybe even have recommended (gasp!) to your fellow Varnish users: req.url ~ /.

132
132

WordPress Cache Enabler Plugin Updates

KeyCDN

In October 2015 KeyCDN released a free WordPress caching plugin called Cache Enabler. We did this because we wanted to give back to the WordPress community in the offering of a caching solution that was not complicated and most importantly, free. Add site cache clearing behavior.

94

How to Create a Simple and Efficient PHP Cache

DZone

Caching is extremely useful in order to speed up PHP webpages. In this article, I’ll show you how to make a simple PHP caching system for your web pages. tutorial performance cache page cachingWhen working on PHP websites made from scratch and without a framework, speed can often be an issue.

115
115

From Caching to CDN: How To Decide Which Way to Go

DZone

There are two effective methods to improve the load time — data caching and using a content delivery network (CDN). performance caching cdn website speed data cachingIn an attempt to speed up their websites, owners are ready to take various measures.

141
141

KeyCDN Launches Country Based Caching

KeyCDN

KeyCDN supports now country code based caching of your assets. Our edge servers derive the two-letter country code from the client IP address, that code is used for the cache key and forwarded to the origin server. Why is country based caching useful?

64

Performance Game Changer: Browser Back/Forward Cache

Smashing Magazine

Performance Game Changer: Browser Back/Forward Cache. Performance Game Changer: Browser Back/Forward Cache. With that caveat out of the way, let’s get to the guts of the article: What is the Back/Forward Cache and why does it matter so much? The HTTP Cache is a disk cache.

73

Redis on Azure Performance Benchmark – ScaleGrid for Redis™ vs. Azure Cache

Scalegrid

Redis is a great caching solution for highly demanding applications, and there are […]. Redis is an advanced key-value store. In fact, it is the number one key value store and eighth most popular database in the world.

130
130

WebP Caching has Landed!

KeyCDN

We’re happy to announce that WebP Caching has landed! How Does WebP Caching Work? Enable the Feature for your Zones Cache Key WebP can be enabled for all Pull Zones. Once enabled, a Zone will cache each image separately as WebP and the other image format (e.g. In the beginning, this can impact your cache hit percentage depending on the number of images you’re delivering since each image is now cached twice.

67

Use Distributed Caching to Accelerate Online Web Sites

ScaleOut Software

The Solution: Distributed Caching. A widely used technology called distributed caching meets this need by storing frequently accessed data in memory on a server farm instead of within a database. That said, a web application needs to interact with a distributed cache as a unified whole.

52

Use Distributed Caching to Accelerate Online Web Sites

ScaleOut Software

The Solution: Distributed Caching. A widely used technology called distributed caching meets this need by storing frequently accessed data in memory on a server farm instead of within a database. That said, a web application needs to interact with a distributed cache as a unified whole.

52

Design Patterns: Cache-Aside Pattern

cdemi

Applications that rely heavily on a data-store usually can benefit greatly from using the Cache-Aside Pattern. If used correctly, this pattern can improve performance and help maintain consistency between the cache and the underlying data store. Using the Cache-Aside Pattern dictates that when you want to retrieve an item from the Data Store, first you check in your cache. If the item exists in the cache, you can use that. Lifetime of Cached Data.

49

Exploring a back/forward cache for Chrome

Addy Osmani

bfcache creates a cache allowing for instant navigations to previously-visited pages

40

AppFabric Caching: Retry Later

ScaleOut Software

Given all this, we thought it would be a good opportunity to see how we are doing relative to the competition, and in particular, relative to Microsoft’s AppFabric caching for Windows on-premise servers. During load-balancing, the client gets the following exception when accessing the cache: ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. One or more specified cache servers are unavailable, which could be caused by busy network or servers. …).

40

Static Analysis of Java Enterprise Applications: Frameworks and Caches, the Elephants in the Room

The Morning Paper

Static analysis of Java enterprise applications: frameworks and caches, the elephants in the room , Antoniadis et al., PLDI’20. Static analysis is a key component of many quality and security analysis tools. Being static , it has the advantage that analysis results can be produced solely from source code without the need to execute the program.

67

Intro to Redis Cluster Sharding – Advantages, Limitations, Deploying & Client Connections

High Scalability

Redis Cluster is the native sharding implementation available within Redis that allows you to automatically distribute your data across multiple nodes without having to rely on external tools and utilities. At ScaleGrid, we recently added support for Redis Clusters on our platform through our fully managed Redis hosting plans.

187
187

Compress objects, not cache lines: an object-based compressed memory hierarchy

The Morning Paper

Compress objects, not cache lines: an object-based compressed memory hierarchy Tsai & Sanchez, ASPLOS’19. Existing cache and main memory compression techniques compress data in small fixed-size blocks, typically cache lines. The first one is that object-based applications perform memory accesses within objects and follow pointers to other objects: Therefore objects, not cache lines, are the right compression unit.

54

Timely Computation of Derived Values

DZone

In general, interactions in such a shop are the following: performance algorithm cache computationIn my penultimate post , I described the use-case of an e-commerce shop.

173
173

Why is GTmetrix seeing a different version of my page?

Gtmetrix

Optimization Explained caching cdn cache site cacheWe explain why GTmetrix may sometimes not see the same content you’re seeing in your browser.

63

How to Make Your Website Load Faster

DZone

website load speed website speed wordpress website design and development website speed test in drupal caching with vanish drupal caching wordpress cachingFaster loading? Sign me up! If you implement testing your landing page you will get to know that you are wasting your money by just throwing them inside pits. The reason behind this is that your pages are simply not loading as expected as fast enough.

101
101

Improving Spark Memory Resource With Off-Heap In-Memory Storage

DZone

performance storage spark caching in-memory spark caching spark memoryImprove your Spark memory. In the previous tutorial , we demonstrated how to get started with Spark and Alluxio. To share more thoughts and experiments on how Alluxio enhances Spark workloads, this article focuses on how Alluxio helps to optimize the memory utilization of Spark applications.

100
100

Expanding the Cloud: More memory, more caching and more performance for your data

All Things Distributed

Amazon ElastiCache is a fully managed, in-memory caching service for customers to optimize the latency, performance and cost of their read workloads. You can augment your database tier with a caching layer using Amazon ElastiCache to lower read costs and reduce read latency using Memcached and now Redis, especially if you need those advanced data structures that are not typically provided by your database tier.

71

Setting Up CloudFront to Host Your Web App

CSS - Tricks

While CloudFront’s edge caching does offer benefits, serving your app’s resources from these multiple locations is not without a cost of its own. Once this connection has been set up, edge caching should add much more value for all your subsequent, asynchronously loaded chunks.

70

PostgreSQL Connection Pooling: Part 2 – PgBouncer

Scalegrid

Once the authentication succeeds: PgBouncer checks for a cached connection, with the same username+database combination. If a cached connection is found, it returns the connection to the client.

171
171

Top Redis Use Cases by Core Data Structure Types

Scalegrid

Depending on how it is configured, Redis can act like a database, a cache or a message broker. Session Cache: Many websites leverage Redis Strings to create a session cache to speed up their website experience by caching HTML fragments or pages. Since data is stored temporarily in the RAM, this attribute makes Redis a perfect choice as a session cache. Learn how to build your own Twitter feed in our Caching tweets using Node.js, Redis and Socket.io

147
147

How It Works (It Just Runs Faster): Non-Volatile Memory SQL Server Tail Of Log Caching on NVDIMM

SQL Server According to Bob

Note: We received feedback that there was some confusion on us calling this functionality “tail of the log caching” because our documentation and prior history has referred to the tail of the log as the portion of the hardened log that has not been backed up. This feature is actually officially called Persisted Log Buffer and is an acceleration of the hardening of the log cache as blogged by Kevin Farlee at [link]. Tail Of Log Caching.

40

A Few Tips for Improving the Performance of Your Web Applications

DZone

performance indexing performance and scalability spring cacheIn this post, we will mostly be talking about a few things that we should keep in mind while writing web APIs to get the best possible performance out of them. Most organizations work with large amounts of data that need to be processed every second. So, it's very important to keep things organized and optimized in order to deliver a great user experience.

158
158

Re-Architecting the Video Gatekeeper

The Netflix TechBlog

The Tech Hollow , an OSS technology we released a few years ago, has been best described as a total high-density near cache : Total : The entire dataset is cached on each node?—?there there is no eviction policy, and there are no cache misses. Near : the cache exists in RAM on any instance which requires access to the dataset. with the same amount of memory Hollow may be able to cache 100% of your dataset and achieve a 100% hit rate.

155
155

Fixing a slow site iteratively

CSS - Tricks

Compressing, minifying and caching assets. We can compress our assets, minify our styles and scripts, and cache things responsibly so we’re serving what the user needs in the most efficient way possible. Caching. The final thing we can check is caching.

78

nice CPU Time – ‘ni’ Time in top

DZone

However, using the ‘nice’ command, super users (like ‘root’) can set the priority for the processes as shown below: unix-linux performance root cause analysis unix operating system cpu cache cpu memory usage cpu optimization cpu usageCPU consumption in Unix/Linux operating systems are studied using 8 different metrics: User CPU time , System CPU time , nice CPU time , Idle CPU time , Waiting CPU time , Hardware Interrupt CPU time , Software Interrupt CPU time , and Stolen CPU time.

102
102

The Amazing Evolution of In-Memory Computing

ScaleOut Software

From Distributed Caches to Real-Time Digital Twins. Emerging in the early 2000s, the first such platforms provided distributed caching on clustered servers with straightforward APIs for storing and retrieving in-memory objects.

52

The Amazing Evolution of In-Memory Computing

ScaleOut Software

From Distributed Caches to Real-Time Digital Twins. Emerging in the early 2000s, the first such platforms provided distributed caching on clustered servers with straightforward APIs for storing and retrieving in-memory objects.

52

Application Scalability — How To Do Efficient Scaling

DZone

performance performance testing performance and monitoring performance tuning performance engineering application scaling performance caching scalability and performanceWhen you build a great product or application, sooner or later, it will be drawing attention more and more users who will expect a flawless, perfect application as the demand grows in the time it handles more and more requests per minute.

103
103

Self-Host Your Static Assets

CSS Wizardry

Users might already have the file cached. If website-a.com links to [link] , and a user goes from there to website-b.com who also links to [link] , then the user will already have that file in their cache. Penalty: Caching. This makes it very safe and sensible to enforce a reasonably aggressive cache policy. That said, this isn’t always the case, and by self-hosting your assets you can design much more bespoke caching strategies. Myth: Cross-Domain Caching.

216
216

Redis vs Memcached

Software Architecture

nosql caching memcached database redisMemcached is in-memory key value store whereas Redis is in-memory data structures store. Memcached supports only string data type which is ideal for storing read-only data. Redis supports almost all types of data. Redis can also be used as a messaging system such as pubsub. Memcached cannot be used as a pubsub system. Memcached is more memory efficient than Redis. Redis is more memory efficient only after you use hashes.

100
100