Repository navigation
Conversation
7 tasks
nvasiu
force-pushed
the
feat/distributed-map-helpers
branch
from
November 26, 2026 21:09
b8d1091 to
13b1303
Compare
Contributor
Author
|
Update to this PR:
|
nvasiu
force-pushed
the
feat/distributed-map-wire-types
branch
from
December 4, 2026 22:35
ec9537b to
3c2216a
Compare
Add the helpers a customer calls inside a processor or reader handler to read the service's event, call their function and return the response the service expects.
nvasiu
force-pushed
the
feat/distributed-map-helpers
branch
from
December 4, 2026 22:35
13b1303 to
1e3c7a8
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue Link, if available
#912
Description
Adds the helpers a processor or reader Lambda calls in its handler. PR 4 of 6 (see the issue). It needs no new Lambda model and depends on PR 3 (#918), for the events and responses.
dmap/DistributedMapHelpers.javaAuthoring helpers for the processor and reader Lambdas, which a customer calls inside their own handler, so they write a plain function rather than the item or batch protocol.
processDistributedMapItems,processDistributedMapBatchandreadDistributedMapPage.FLATctx.mapby default, with a nesting option.processDistributedMapItemswrites one ERROR log line for each failed item, withdistributedMapRunArn,itemIdand the error it reports.dmap/ItemContext,BatchContextandReaderContext: the run ARN and item ids passed to the customer's function.ReaderPage: what a customer's reader function returns.execution/DurableExecutor.javaDemo/Screenshots
N/A
Design
See Rules for every change.
+634lines insrc/mainand+1173insrc/test.DistributedMapHelperswith their 2 functional interfaces, and 4 records indmap/.Assumptions
Each assumption about the service, Lambda, the runtime or another library, with its evidence, or marked "unverified" (rule 6):
Decisions not covered by the issue or the design note
One line each, with the reason (rule 7):
DurableExecutorpicks the default JSON serdes when the input type isProcessorEvent, so a customer serdes cannot change the format the service defines, with no new public method orDurableConfigoption.DurableContextfirst.FLATnesting by default, because it uses fewer operations.ctx.map's own default staysNESTED."null", and a non-null value that serializes to null is rejected, because the service requires every item to be a string.Checklist
Testing
Unit Tests
Have unit tests been written for these changes?
Yes.
dmap/DistributedMapHelpersTestanddmap/DistributedMapDurableHelpersTest: helper tests, checking that they process items, report failures, pass the run ARN and item ids, reject bad inputs, run inFLATand nested modes, and write the error log line.Integration Tests
Have integration tests been written for these changes?
No.
LocalDurableTestRunnerdoes not support distributed map yet.Examples
Has a new example been added for the change? (if applicable)
No.