Telegram Group & Telegram Channel
Forwarded from Reorx’s Forge
SpacetimeDB and Convex

SpacetimeDB 是一个新型数据库,它旨在将后端服务的逻辑直接集成到数据库本身,从而彻底改变构建和部署可扩展实时应用的方式。

SpacetimeDB 直接使用 Rust 或 C# 代码来定义数据表结构和用户逻辑,因此你既可以把它看作一个能自定义函数的数据库,又可以看作一个自带原子化事务数据库的 RPC 框架。这种设计优点有二,第一,将传统三层架构(客户端 + 后端 + 数据库)压缩,简化了整体架构;第二,无须付出额外的努力,所有的应用逻辑都在事务中执行,在提升开发效率的同时,保证了数据的强一致性。

SpacetimeDB 这些特点让我想起了两年前看到的类似产品 Convex, 它是一个集数据库、后端框架、前端 SDK 一体的一站式开发套件,使用 TypeScript 定义数据库表结构和用户逻辑,自动生成 React 所需的 HTTP 请求和状态管理函数。

对比发现,这两者都致力于简化现代应用的后端开发,特别是对于需要实时数据同步的应用,但它们在实现方式和侧重点上有所不同。

在核心架构上,SpacetimeDB 是「数据库即后端」;Convex 虽然也简化了后端,但它更像是一个「后端即服务」,尽管紧密耦合,开发者编写的 TypeScript 代码仍然是在其后端环境执行,来与数据库交互。

在应用场景上,SpacetimeDB 明确以 MMO 游戏为首要目标;而 Convex 更侧重于通用 Web 应用和移动应用,强调与 React 等框架集成,强调响应式的数据调用方式,这与现代前端框架的状态管理理念也十分契合。

两个产品都是非常有趣的开发范式革新,有兴趣的读者可以考虑在新项目或 side projects 上使用,欢迎分享你的使用体验。

P.S. 在生成前端 SDK 这点上,Convex 让我想到了之前分享过的 Encore: https://www.tg-me.com/reorx_share/5084



tg-me.com/hyi0618/7276
Create:
Last Update:

SpacetimeDB and Convex

SpacetimeDB 是一个新型数据库,它旨在将后端服务的逻辑直接集成到数据库本身,从而彻底改变构建和部署可扩展实时应用的方式。

SpacetimeDB 直接使用 Rust 或 C# 代码来定义数据表结构和用户逻辑,因此你既可以把它看作一个能自定义函数的数据库,又可以看作一个自带原子化事务数据库的 RPC 框架。这种设计优点有二,第一,将传统三层架构(客户端 + 后端 + 数据库)压缩,简化了整体架构;第二,无须付出额外的努力,所有的应用逻辑都在事务中执行,在提升开发效率的同时,保证了数据的强一致性。

SpacetimeDB 这些特点让我想起了两年前看到的类似产品 Convex, 它是一个集数据库、后端框架、前端 SDK 一体的一站式开发套件,使用 TypeScript 定义数据库表结构和用户逻辑,自动生成 React 所需的 HTTP 请求和状态管理函数。

对比发现,这两者都致力于简化现代应用的后端开发,特别是对于需要实时数据同步的应用,但它们在实现方式和侧重点上有所不同。

在核心架构上,SpacetimeDB 是「数据库即后端」;Convex 虽然也简化了后端,但它更像是一个「后端即服务」,尽管紧密耦合,开发者编写的 TypeScript 代码仍然是在其后端环境执行,来与数据库交互。

在应用场景上,SpacetimeDB 明确以 MMO 游戏为首要目标;而 Convex 更侧重于通用 Web 应用和移动应用,强调与 React 等框架集成,强调响应式的数据调用方式,这与现代前端框架的状态管理理念也十分契合。

两个产品都是非常有趣的开发范式革新,有兴趣的读者可以考虑在新项目或 side projects 上使用,欢迎分享你的使用体验。

P.S. 在生成前端 SDK 这点上,Convex 让我想到了之前分享过的 Encore: https://www.tg-me.com/reorx_share/5084

BY yihong0618 和朋友们的频道




Share with your friend now:
tg-me.com/hyi0618/7276

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Spiking bond yields driving sharp losses in tech stocks

A spike in interest rates since the start of the year has accelerated a rotation out of high-growth technology stocks and into value stocks poised to benefit from a reopening of the economy. The Nasdaq has fallen more than 10% over the past month as the Dow has soared to record highs, with a spike in the 10-year US Treasury yield acting as the main catalyst. It recently surged to a cycle high of more than 1.60% after starting the year below 1%. But according to Jim Paulsen, the Leuthold Group's chief investment strategist, rising interest rates do not represent a long-term threat to the stock market. Paulsen expects the 10-year yield to cross 2% by the end of the year. A spike in interest rates and its impact on the stock market depends on the economic backdrop, according to Paulsen. Rising interest rates amid a strengthening economy "may prove no challenge at all for stocks," Paulsen said.

Telegram auto-delete message, expiring invites, and more

elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.

telegram from us


Telegram yihong0618 和朋友们的频道
FROM USA