重建Airbnb的支付协调机制

By: Bryon Ross, Feifeng Yang, Sophie Behr, Theresa Johnson, Xin Lin, Yun Jin Cho

By: Bryon Ross,杨飞凤,Sophie Behr,Theresa Johnson,Xin Lin,Yun Jin Cho

Introduction

简介

Airbnb’s payment orchestration system is responsible for ensuring reliable money movement between hosts, guests, and Airbnb. In short, guests should be charged the right amount at the right time using their selected payment methods; hosts should be paid the right amount at the right time to their desired payout methods. For historical reasons, Airbnb’s billing data, payment APIs, payment orchestration, and user experiences were tightly coupled with the concept of a reservation for a stay. Unfortunately, this meant that a payment-related feature for stays had to be rebuilt for other products — for example, Airbnb Experiences — and each implementation may have its own product-specific quirks. As you can imagine, this approach is neither scalable nor easy to maintain.

Airbnb的支付协调系统负责确保房东、客人和Airbnb之间可靠的资金流动。简而言之,客人应该在正确的时间使用他们选择的支付方式收取正确的金额;房东应该在正确的时间以他们想要的支付方式支付正确的金额。由于历史原因,Airbnb的计费数据、支付API、支付协调和用户体验都与住宿预订的概念紧密相连。不幸的是,这意味着必须为其他产品--例如Airbnb体验--重建一个与住宿有关的支付功能,而且每个实现都可能有其特定的产品怪癖。你可以想象,这种方法既不具有可扩展性,也不容易维护。

For several years, Airbnb has been migrating away from our monolithic Ruby on Rails application toward a service-oriented architecture (SOA). This migration has been discussed extensively in several Airbnb tech blog posts. We will gloss over some of the technical discussions common to those migrations and instead focus on some of the aspects that were unique to migrating our payments systems. While many teams at Airbnb chose to create a one-to-one replacement when migrating to SOA, the payments organization instead decided to use it as an opportunity to fundamentally redesign our services to provide a sound technical foundation for future growth. As a consequence of this decision, the migration process took longer to complete than a more straightforward one-to-one replacement.

几年来,Airbnb一直在从我们的单片Ruby on Rails应用程序向面向服务的架构(SOA)迁移。这种迁移在Airbnb的几篇 技术 博客 文章中都有广泛...

开通本站会员,查看完整译文。

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.125.1. UTC+08:00, 2024-05-17 11:49
浙ICP备14020137号-1 $访客地图$