Weekly report: May 5-11

Quick #weekly_report.

  • Solved two Leetcode graphs problems. They were challenging - I definitely need to review Dijkstra’s and Union-Find algorithms;
  • Started a Cloud Engineering course. I think this knowledge is essential for backend engineer. I learned how to create Lambda functions both via the CLI and the web interface.
  • Wrote the post about the Saga design pattern (check it out);
  • Found and fixed a bug in the duration parameter for presigned S3 URLs. During a refactoring, I had written
// Where config_value is int from configs service
duration := time.Duration(config_value) * time.Second
Foo(time.Duration(duration) * time.Second)

but it could be:

Foo(duration)

Accidentally, it is really hard to test or detect such bug before deployment. 😦