OctoBase icon indicating copy to clipboard operation
OctoBase copied to clipboard

Architecture optimization for AFFiNE cloud

Open JasperStardream opened this issue 2 years ago • 2 comments

Our team has identified several areas that need to be optimized to improve code stability. We plan to implement the following changes:

### Improve code readability
- [ ] #377 
  • [x] toeverything/AFFiNE#1772
  • [x] Server-side transaction mechanism: The transaction mechanism will help us avoid data inconsistency and ensure that all requests are processed reliably and consistently.
  • [x] toeverything/AFFiNE#1585
  • [ ] Ensure the idempotency of API requests: We will ensure that API requests are idempotent, meaning that multiple requests do not have unexpected effects. This will help us avoid data inconsistency and ensure that our system remains stable.
  • [ ] Improve system security: Enhance user permissions, and check for issues such as unauthorized access.
  • [x] check permissions of blob API

These optimizations will help us create a more stable and efficient system, improving code stability and enhancing the user experience.

JasperStardream avatar Mar 13 '23 23:03 JasperStardream

Found an issue, the token nonce should not be constant, it's very dangerous to do so.

JasperStardream avatar Mar 14 '23 07:03 JasperStardream

The issue of API idempotence is mainly related to the following three APIs: /api/workspace POST /api/workspace/:id DELETE /workspace/:id/blob. PUT

JasperStardream avatar Apr 14 '23 01:04 JasperStardream