问题描述
我的旅行预订流程如下所示:
booking_process:
if_date_time_exists_in_bookings_table and there are still spaces available
make_payment
update_table
send_confirmation_email_to_user
## no need to update google calendar here
else if date_time hasn't been booked yet
make_payment
make_closed_event_in_google_calendar
insert_record_in_db
send_confirmation_email_to_user
在这个项目中,我想为活动集成 Google Calendar api,并将其作为我所有旅行的中心位置。我有以下要求:
最后我该如何测试?我猜单元测试不是为了这个。 在块代码 2(其他部分)中我没有更新,这是否意味着我不能使用数据库锁?这似乎不适合缓存和因此缓存锁定的操作。是否有可能在原子操作中混合非原子服务(我相信 Google 日历不是原子的)?
我正在使用 Laravel,完全不知道该怎么做。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)