Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ChiragGude's avatar

Redis with Laravel series

How about a series on using Redis with Laravel. Although using Redis with Laravel is dead-simple, it would be great to learn some best practices, performance strategies, conventions etc.

I could think of the following mini-lesson that could be useful for basic and slightly advanced scenarios:

  • Installing and setting up Redis
  • Redis for session management
  • Redis for caching small sets of data and large DB queries
  • Redis for queues
  • Redis for collecting metrics
  • Redis broadcaster with SocketIO for Event Brodcasting (pub/sub)
  • Best practices for cache expiry, naming keys, use cases for different Redis data structures (hash, lists, sets etc.)
0 likes
33 replies
ChiragGude's avatar

@mstnorris Yeah, I've seen your guide earlier - it's top notch! I personally love Redis - it's a great tool for many web dev projects and I just felt that a comprehensive series with multiple use cases would be great to watch.

2 likes
mstnorris's avatar

Thank you!

I agree with you, I too would like a series on that. I'm currently using Pusher and it is great, although having discussed usage and costs with them, I know that using Redis and Socket.io amongst others, run by myself is definitely the more cost effective way to go.

1 like
mikebronner's avatar

I support this request as well. :) Learning more about the capabilities and uses for Redis would be great. So far I have only implemented it for caching and would love to see where else it would be beneficial.

1 like
NoorDeen's avatar

+1 for redis series . the most important thing in this series will be best use cases in using redis data types in laravel web application .

1 like
tankerkiller125's avatar

Definitely. Although Caching with Redis is the same as Caching with any other format in Laravel so I don't really see the point in doing a tutorial on it since I believe it already exists in one of the Laravel Tutorial Series.

postitief's avatar

+1 for redis. Laravels documentation itself isn't great either.

1 like
chuck's avatar

Hope it's more focused on the known use-cases like leader board, counting, tracking, session management, etc. That'd be great.

2 likes
Dremon's avatar

Thanks for link jeloqim! But it will be great if Jef can create someting about this topic. I like Jef explanation (-:

1 like
sgtpepper's avatar

@JeffreyWay it would be awesome to get more info on authentication and private channels with Redis and Socket.io

Guess we could google it but it's not quite the same

1 like
sgtpepper's avatar

Thank you @JackJones but I meant something more like extending the Real time Laravel with Socket.io series that you mentioned there

1 like
Next

Please or to participate in this conversation.