词汇:adapter
n. 适配器;改编者;接合器;适应者
相关场景
- But Rails 8 is not just about the better deployment story and database-backed adapters. We’re also making Propshaft the new default asset pipeline. Propshaft a is dividend from the mission to focus on #NOBUILD as the default path in Rails 7 (and offloading more complicated JavaScript setups to bun/esbuild/vite/etc). As the new asset pipeline it replaces the old Sprockets system, which hails from all the way back in 2009. A time before JavaScript transpilers and build pipelines as we know them today existed. And long, long before we could imagine browsers with stellar JavaScript implementations, import maps, and no constraints from many small files thanks to HTTP/2.
但是Rails 8不仅仅是更好的部署故事和数据库支持的适配器。我们还将Propshaft作为新的默认资产管道。Propshaft a是专注于#NOBUILD作为Rails 7默认路径的任务的红利(并将更复杂的JavaScript设置卸载到bun/esbuild/vite/etc)。作为新的资产管道,它取代了早在2009年就出现的旧Sprockets系统。在我们今天所知道的JavaScript转译器和构建管道存在之前的一段时间。很久以前,我们就可以想象浏览器具有出色的JavaScript实现、导入映射,并且由于HTTP/2而没有来自许多小文件的约束。>> Rails8- On top of the trifecta of Solid adapters that makes it possible for SQLite to power Action Cable, Rails.cache, and Active Job, a bunch of work has gone into making the SQLite adapter and Ruby driver suitable for real production use in Rails 8.
除了使SQLite能够为Action Cable、Rails.cache和Active Job供电的Solid适配器之外,还进行了大量工作,使SQLite适配器和Ruby驱动程序适合Rails 8中的实际生产使用。>> Rails8- These adapters are all created from the same premise: Disks have gotten fast enough that we don’t need RAM for as many tasks. This allows us to reap the simplification benefits of SSD and NVMe drives being orders of magnitude faster than good-old spinning rust.
这些适配器都是基于同一个前提创建的:磁盘已经变得足够快,我们不需要RAM来完成那么多任务。这使我们能够获得SSD和NVMe驱动器的简化优势,其速度比旧的旋转生锈快几个数量级。>> Rails8- Part of making Rails easier to deploy is to cut down on the number of accessory services required to get going. In the past, Rails needed either MySQL or PostgreSQL as well as Redis to take full advantage of all its features, like jobs, caching, and WebSockets. Now all of it can be done with SQLite thanks to a trifecta of new database-backed adapters named Solid Cable, Solid Cache, and Solid Queue.
使Rails更易于部署的一部分是减少启动所需的辅助服务的数量。在过去,Rails需要MySQL或PostgreSQL以及Redis来充分利用其所有功能,如作业、缓存和WebSockets。现在,得益于名为Solid Cable、Solid Cache和Solid Queue的三个新的数据库支持适配器,所有这些都可以通过SQLite完成。>> Rails8