Page MenuHomePhabricator

[services][blob] Provide S3 and DB to service, add more constants
ClosedPublic

Authored by bartek on Nov 18 2022, 10:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 8:24 PM
Unknown Object (File)
Wed, Apr 3, 4:27 AM
Unknown Object (File)
Wed, Apr 3, 4:27 AM
Unknown Object (File)
Wed, Apr 3, 4:27 AM
Unknown Object (File)
Wed, Apr 3, 4:27 AM
Unknown Object (File)
Wed, Apr 3, 4:18 AM
Unknown Object (File)
Mar 26 2024, 12:53 AM
Unknown Object (File)
Mar 26 2024, 12:52 AM
Subscribers

Details

Summary
  • Provided the S3 and DynamoDB clients to the MyBlobService implementation, the very similiar way as it is done in Identity Service
  • Added some constants and grouped them. Their values are taken from various places across the C++ implementation.

Depends on D5681

Test Plan

The service is able to build and start as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Nov 18 2022, 10:45 AM
varun added inline comments.
services/blob/src/service.rs
15 ↗(On Diff #18592)

I understand you're trying to keep things 1 to 1 with the existing blob service right now, but I think eventually we should expose our own interface on top of aws_sdk_s3::Client, similar to what we do for the DatabaseClient

This revision is now accepted and ready to land.Nov 22 2022, 10:01 AM
services/blob/src/service.rs
15 ↗(On Diff #18592)

Yeah, definitely - It would look even cleaner that way. I'll create a task to keep track of this.

Edit: https://linear.app/comm/issue/ENG-2341/blob-service-create-s3-client-abstraction