正在加载视频...

视频加载失败

stop overengineering.. just use a database databases can handle auth, queues, drivers, caching, sessions, and more keep it simple 🤌🏻

16,997 次观看 • 6 个月前 •via X (Twitter)

20 条评论

Steve Bauman 的头像
Steve Bauman6 个月前

100%! Everything but queues though imo -- until we get a Horizon DB driver of course. Need that auto-balancing and its child process management. Otherwise its not the greatest experience to have to manually init queue worker daemons for each queue you have

Bruno 的头像
Bruno6 个月前

This is very important because many people think they are creating the next Amazon, Netflix, Facebook, Instagram, etc. But only a well-configured database will do the job.

nunomaduro 的头像
nunomaduro6 个月前

agree

Newton Job 的头像
Newton Job6 个月前

Just use the freaking database

nunomaduro 的头像
nunomaduro6 个月前

fr

Ted Moyses 的头像
Ted Moyses6 个月前

Right up until you have 100 concurrent sessions and need to rearchitect a running prod

Dominik Zogg 的头像
Dominik Zogg6 个月前

Please use MongoDB as database, cause moat data in web applications are nested structures and not excel tables.

Seven 的头像
Seven6 个月前

W/e just use Laravel and a database xd

Peter Thomson 的头像
Peter Thomson6 个月前

Horizon for db driver would help that story.

Lucas Romano 的头像
Lucas Romano6 个月前

Would be cool if Horizon were compatible with database driver.

Tomislav 的头像
Tomislav6 个月前

But...Laravel sets up cookies for auth, and changing to Redis for caching is like...5 seconds of work. I think this setup is just a much better starting point for anything.

Chris Blackwell 的头像
Chris Blackwell6 个月前

Why use database as a cache? Isn’t that the same as not caching. I agree with your take, just don’t start caching until you need to.

nunomaduro 的头像
nunomaduro6 个月前

no; it’s not the same.. imagine an expensive http calls and expensive fetches that can be avoided with a direct fast db call

Jordan Partridge 🔳 的头像
Jordan Partridge 🔳6 个月前

So what you’re saying is .. I should use the database?

nunomaduro 的头像
nunomaduro6 个月前

correct

validate.qa 的头像
validate.qa6 个月前

dbs handle the basics right. overengineering kills velocity

Carl Mathisen 的头像
Carl Mathisen6 个月前

Keep it simple, agreed! I usually put Redis in front of the DB though. Still simple.

nunomaduro 的头像
nunomaduro6 个月前

right / my take is just 99,67 of the projects don’t even need redis.. db just works for caching

Dominik Zogg 的头像
Dominik Zogg6 个月前

@carlmathisen And most of th3 0.33% only need, cause they have clue about software design

nunomaduro 的头像
nunomaduro6 个月前

@carlmathisen ouch 🌶️

相关视频