What is the indication of using Redis with IoTs?

0

I have in my hands a project to integrate a company's devices into a web platform. This video shows a general idea of the project.

These are various machines, which send information (status, temperature, speed, ..., etc) to a central server (a MySQL database). And from another direction, these machines receive instructions from several users to: stop a process in progress, decrease or increase speed, decrease temperature, ... etc.

My job is to integrate this architecture on the web, in real time, as in the video I showed above.

Receiving real-time information from the machine and displaying it in the browser is done. I basically used MySql + SSE + PHP + Bootstrap. I can also interact tom tablets and smart phones. This is already done.

My question lies in the Browser direction == > Devices.

In the current architecture this process passes through REDIS. Since I've never worked with this technology I've done a search and found this site that shows some applications. I'm wanting to leave the whole process using Mysql and abandon the Redis. For this I need to understand the importance of this technology in IoT projects, to know if Mysql will respond to the needs.

As far as I understand, this is a very sweaty NoSql database for caching.

But I can not see where Redis is important in IoT development.

Someone who has worked with these two technologies IoT and Redis, could you explain?

    
asked by anonymous 29.12.2016 / 17:47

1 answer

0
Redis has I / O faster because it is all in memory, but because of this it is not suitable if you need to persist this data (but there are ways to write to disk). Generally, it is not necessary to save data history in IoT projects, just transfer messages as fast as possible.

For example if you are going to use a raspberry pi and keep typing in his SD, it will wear you out fast. An HDD requires a lot more power, few embedded devices use HDD and even then HDDs eventually fail and need to be replaced. It's uncommon to be replacing parts of embedded devices.

However you can use MySQL too, with a table using MyISAM engine, which leaves everything in memory. But you said you already have a server, I do not know if that fits into IoT. You've included a video with a toy train, I can not even imagine how it relates to your project.

But that's it: redis is fast and not persistent. IoT uses a lot of redis because it consumes few resources, but obviously has fewer features than an RDBMS. If you have a large server, you have the resources to leave a persistent data structure and use less economical tools.

    
22.10.2017 / 03:31