Skip to content

feat(streaming): add SQS data adapters and FIFO support - #8723

Merged
ReubenBond merged 15 commits into
dotnet:mainfrom
jamescarter-le:request/SQS-DataAdapter
Aug 22, 2026
Merged

ReubenBond merged 15 commits into
dotnet:mainfrom
jamescarter-le:request/SQS-DataAdapter

Conversation

@jamescarter-le

@jamescarter-le jamescarter-le commented Nov 13, 2023 •

Copy link
Copy Markdown
Contributor

The EventHub StreamProvider has a concept of a DataAdapter, where the user can inject their own implemention to parse messages for the queue, specifically for the purpose of picking up messages from sources that are not Orleans, and have not already passed through the StreamProvider.

I am attempting to implement this in the SQS provider, as I need similar functionality.

Request for comments / code review on this PR, I need to pull some more data out to configuration still.

The first commit was required to get the SQS tests passing, before I moved on to the commit with the Data Adapter change.

Contract changes:

  • SQSBatchContainer changed from internal to public (as the DataAdapter needs to construct one, this is crux of the change).
  • SQSBatchContainer.ctor changed from internal to public as it is the only method of passing a SequenceToken to the object.

Alternative approach, would be to have the consumer implement an IBatchContainer but it would be nice to have a default one.

Microsoft Reviewers: Open in CodeFlow

@jamescarter-le

Copy link
Copy Markdown
Contributor Author

Could a core member check if the SQS tests are actually getting run in CI? If you pull master and run AWSUtils.Tests.Streaming.SQSAdapterTests it will fail before my Fix SQS Tests commit but CI pipeline reports it's all fine.

@benjaminpetit benjaminpetit self-assigned this Nov 13, 2023
@jamescarter-le
jamescarter-le force-pushed the request/SQS-DataAdapter branch from f4306cc to b8aface Compare January 30, 2024 10:52
@jamescarter-le

Copy link
Copy Markdown
Contributor Author

Just rebased this ontop of main for Orleans 8.0.0

Would appreciate someone looking to see if we can merge this PR.

@jamescarter-le

Copy link
Copy Markdown
Contributor Author

@benjaminpetit Any possibility of getting this change into Orleans 8.1.0?

@jamescarter-le
jamescarter-le force-pushed the request/SQS-DataAdapter branch from 5087395 to f4bb41f Compare February 29, 2024 11:52
@jamescarter-le
jamescarter-le force-pushed the request/SQS-DataAdapter branch from 0b40d64 to 519eb4d Compare May 23, 2024 10:57
@jamescarter-le

Copy link
Copy Markdown
Contributor Author

Hey Orleans team,

Is there something that is designed wrong in this PR that is preventing us from pulling it into Orleans?

I would really like to get away from having to rebase on each Orleans release and maintaining a fork for our apps.

I'm sure being able to support Native -> Orleans streams via SQS would be useful for others.

Let me know if I need to alter this PR in any way to get it included.

@jamescarter-le
jamescarter-le force-pushed the request/SQS-DataAdapter branch from 519eb4d to 483cda0 Compare November 5, 2024 12:08
@jamescarter-le

Copy link
Copy Markdown
Contributor Author

Just added some changes to partition the IQueueCache when using SQS FIFO based queues, to allow the SQS SequenceNumber that is aligned by MessageGroupId, to be used for the SequenceToken, considering the limitations of the SimpleQueueCache.

@jamescarter-le

Copy link
Copy Markdown
Contributor Author

@OrleansTeam if there is no intention of accepting this PR or changes to the AWS extensions, let me know and I can make this a separate package, instead of having to continually rebase these changes when I want to upgrade my own Orleans versions, and others may find it useful.

@ReubenBond ReubenBond changed the title RFC - Add the DataAdapter pattern to the SQS Stream Provider feat(streaming): add SQS data adapters and FIFO support Aug 21, 2026
@ReubenBond
ReubenBond force-pushed the request/SQS-DataAdapter branch from 483cda0 to 6a01115 Compare August 21, 2026 19:10
@ReubenBond
ReubenBond self-requested a review as a code owner August 21, 2026 19:10
Copilot AI lite review requested due to automatic review settings August 21, 2026 19:10
This was referenced Sep 9, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants