分享 hey.com 所用到的技术栈

lazybios · June 26, 2020 · Last by nightire replied at June 30, 2020 · 3633 hits

DHH 在 twitter 上分享了 hey.com 的技术栈以及 Gemfile

Stack:
  • Vanilla Ruby on Rails on the backend, running on edge
  • Stimulus, Turbolinks, Trix + NEW MAGIC on the front end
  • MySQL for DB (Vitess for sharding)
  • Redis for short-lived data + caching
  • ElasticSearch for indexing
  • AWS/K8S
Gemfile

https://gist.github.com/dhh/782fb925b57450da28c1e15656779556

原推里还有关于项目管理、k8s、客户端等细节讨论,很值得阅读。

类似 phoenix liveview 吧

看来上了 MySQL 的集群

Reply to afly

这还是用 stimulus 实现的一个 ui pattern,不是原推文提到的 NEW MAGIC,据说过段时间会开源的,届时才清楚它到底是什么。

Reply to nightire

看 DHH 的这个推回帖,貌似是 Stimulus+WebSocket 实现的,可能会类似 Phoenix 的 LiveView。最终还是得看 Hey.com 针对这个的开源才清楚了。

https://github.com/hopsoft/stimulus_reflex 这个已经类似 phoenix liveview 了

Reply to nyrf

@apexy 对,我也正想提这个,因为已经有了类 Phoenix LiveView 的东西了,所以如果 New Magic 也就是这个的话,那么 Magic 也就不过如此罢了。

You need to Sign in before reply, if you don't have an account, please Sign up first.