话题框架与类库 › MessagePack

框架与类库:MessagePack

Caching Without Marshal Part 2: The Path to MessagePack

Shopify wanted a cache format that would not blow up when we shipped code changes. Part two of Caching Without Marshal describes the MessagePack format, and how we migrated to MessagePack.

Caching Without Marshal Part 1: Marshal from the Inside Out

Caching is critical to how Rails applications work. At every layer, whether it be in page rendering, database querying, or external data retrieval, the cache is what ensures that no single bottleneck brings down an entire application.

But caching has a dirty secret, and that secret’s name is Marshal.

Marshal is Ruby’s ultimate sharp knife, able to transform almost any object into a binary blob and back. This makes it a natural match for the diverse needs of a cache, particularly the cache of a complex web framework like Rails. From actions, to pages, to partials, to queries—you name it, if Rails is touching it, Marshal is probably caching it.

Marshal’s magic, however, comes with risks.

后台服务架构高性能设计之道

“N 高 N 可”,高性能、高并发、高可用、高可靠、可扩展、可维护、可用性等是后台开发耳熟能详的词了,它们中有些词在大部分情况下表达相近意思。本序列文章旨在探讨和总结后台架构设计中常用的技术和方法,并归纳成一套方法论。

石墨文档 Websocket 百万长连接技术实践

石墨文档业务发展,目前WS日连接峰值已达百万量级,如何用GO设计一套百万长连接的WS,本文详细介绍了WS的一些优化方式和压测数据。

PHP配置化读取优化方案

从数据的读取、解析、以及消费三个环节针对性的进行优化,减少io以及反序列化数据层面对于cpu的消耗。

  • «
  • 1
  • »

trang chủ - Wiki
Copyright © 2011-2024 iteam. Current version is 2.137.1. UTC+08:00, 2024-11-05 16:24
浙ICP备14020137号-1 $bản đồ khách truy cập$