Sobes.tech
Middle+

We cannot tag and version through CI/CD. The client may be one version, the backend another. What can be done in these conditions besides error monitoring through Sentry?

sobes.tech AI

Answer from AI

If it is impossible to synchronize the client and backend versions through CI/CD and tags, the following approaches can be applied:

  • API and Contract Versioning: Implement API versioning so that the client and server can work with different interface versions without conflicts.
  • Feature Flags and Adaptive Code: Use feature flags or conditional version checks to allow the client to adapt to different backend versions.
  • Backward/Forward Compatibility: Design APIs and data so that new versions are compatible with previous ones, minimizing errors due to mismatches.
  • Logging and Tracing: In addition to Sentry, use enhanced logging and request tracing to identify issues.
  • Documentation and Communication: Clearly document versions and changes so that teams understand which versions are compatible.

For example, you can add a version header in the API, and the client can adapt or switch to another mode upon receiving an error.