Algoleigol
Algoleigol

Reputation: 201

Use ElasticSearch to serve HTML pages

I'm developing an application where users can create their own web pages. For this, they can create static HTML pages from their admin panel. Then this pages can be published on their web pages.

The fields of a page are: id, title, content, url.

The functionality is the next:

Nowadays I'm saving this pages in MySQL and when a page is requested I search into MySql by the url field. The traffic has increased and I want to speed up the reads from the database and I have thought in use ElasticSearch for this.

My question is if could be a good idea, continue saving this HTML pages in MySQL and also in ElasticSearch. Then when a page is requested from the web page of the user make reads from ElasticSearch.

Thanks in advance for help

Upvotes: 1

Views: 468

Answers (1)

Nirmal
Nirmal

Reputation: 1336

You can use elasticsearch - but just for a Key-Value lookup, it may be overkill - It makes more sense if your query is more than a key value lookup.

Have you considered using redis to speedup things ?

Upvotes: 1

Related Questions