Koha Hacks: Why You Should Use Content Delivery Network (CDN) For Koha Library System

Is your Koha server taking too long to catalog or checkout items? Before you break the bank and purchase a bigger server with bucket-loads of RAM and processing power, you should try setting up a content delivery network (CDN) using a free service like CloudFlare instead – you might just save yourself a lot of time and money!

Koha Hacks: Why You Should Use Content Delivery Network (CDN) For Koha Library System

Is your Koha server taking too long to catalog or checkout items? Before you break the bank and purchase a bigger server with bucket-loads of RAM and processing power, you should try setting up a content delivery network (CDN) using a free service like CloudFlare instead – you might just save yourself a lot of time and money!

Why You Need A Content Delivery Network (CDN) for Koha

The server on which are running your Koha instance is located in a single, specific geographic region, even if it is a “cloud” server. This means it will take users who are located in another different geographic location longer to access your Koha library. While this may not be an issue if you are hosting Koha on a local server or using a host who is in the same city or country as your patrons, it may be a bigger problem if you are using a cloud service like Amazon AWS.

Say you are a library located in Zimbabwe and you choose to launch your server in the US-East (Ohio) region instead of the Africa (Cape Town) region, which would be the one closest to you. This saves you money since US-based servers are cheaper (a t3.xlarge server located in Cape Town costs $0.217 per hour vs. $0.1344 per hour for a comparable server in the US) but it comes at the cost of speed for your users. Instead of doubling your server costs and switching regions, you can use a content delivery network (CDN) to serve content faster.

A CDN does the same thing as Apache and Memcached caching does, but on a much larger scale.  It uses proxy servers that are located closer to end users than origin (i.e. your main) servers. The CDN will cache the content from your Ohio-based server and distribute the cache to its own servers scattered around the world, which will likely include your own geographic location. So when a patron logs on to your OPAC, they will likely see cached content served from the CDN’s proxy servers than from your main server. This improves speed of access, security, and the overall reliablity of your servers. I recommend you use Cloudflare – it has a free tier which should be more than enough for most libraries. Setting up a Cloudflare CDN is beyond the scope of this article but I will write a separate one soon so make sure you subscribe to stay up to date with the latest tips and tricks!

Speed is of the essence in today’s world so it’s important you optimize your Koha library system server to ensure your patrons and staff can do their work quickly and efficiently. Let me know how implementing these hacks went for you in the comments. And if you need help, don’t hesitate to get in touch. 

Koha Support provides hassle-free Koha installation and cloud hosting as well as training, data migration, customization and technical support. Check out our packages and start your free trial today!

How to use Koha Library System on AWS

1. Subscribe to Koha library system by KohaSupport on AWS Marketplace Go to https://aws.amazon.com/marketplace Search for "Koha Integrated Library Management System by KohaSupport" Click "Continue to subscription". If you don't yet have an AWS account, you will be...

read more
7 Reasons Why You Need an Integrated Library Management System

7 Reasons Why You Need an Integrated Library Management System

Running a library isn’t as simple and straightforward as many people I have encountered think. It’s more than just checking out books and putting them back on the shelf when they are returned. Librarians have to deal other complex, time-consuming responsibilities like acquisitions, cataloguing, inventory, budgets, reports and interlibrary loaning. Pen and paper won’t cut it, and using an excel spreadsheet is only marginally better than digging a trench using a caviar spoon.

read more

What Is The Difference Between MySQL Plugins?

The MySQL database management system provides different authentication plugins to authenticate users with the database. Three commonly used plugins are mysql_native_password, caching_sha2_password, and auth_socket. 1. mysql_native_password: The mysql_native_password...

read more

Library Terminology Every Librarian Should Know

Every librarian should be familiar with the following key terminologies: 1. Cataloging: The process of organizing, describing and classifying library materials. 2. Classification: The system used to arrange library materials into categories based on subject or genre....

read more

What Are Acquisitions In Library Management?

Acquisition in Library Management refers to the process of acquiring materials and resources such as books, journals, e-books, databases, and other information sources to support the needs and objectives of a library's user community. This process is critical to the...

read more

Top 10 Courses For Librarians Cost Duration Links

Here are the top 10 best courses or degrees for librarians, along with cost and average duration information and links to some programs: 1. Master of Library Science (MLS) - This is the most common and widely recognized degree for librarians. The average cost of a MLS...

read more