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
F3504802: D5682.diff
Fri, Dec 20, 10:31 AM
Unknown Object (File)
Sun, Dec 15, 5:50 PM
Unknown Object (File)
Sun, Dec 15, 5:50 PM
Unknown Object (File)
Sun, Dec 15, 5:50 PM
Unknown Object (File)
Sun, Dec 15, 5:49 PM
Unknown Object (File)
Sun, Dec 15, 5:29 PM
Unknown Object (File)
Fri, Dec 6, 9:48 PM
Unknown Object (File)
Tue, Nov 26, 5:36 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
No Lint Coverage
Unit
No Test Coverage

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