Skip to content

Limited to using long for entity ids #1317

Open
@spring-projects-issues

Description

@spring-projects-issues

Rob Fletcher opened BATCH-2254 and commented

We're attempting to build a workflow orchestration system and Spring Batch – primarily using Tasklets – seemed a good fit but one of the things we need to do is persist job status to a clustered environment (cross-region on Amazon's cloud) in order that we can recover from instance outages, even region outages and have job execution continue. The fact that Spring Batch's Entity class makes it impossible to use any id type other than long is preventing us from using a clustered storage solution such as Cassandra. We'd have to introduce some kind of blocking in order to reliably generate a unique long id without danger of collision. It seems like it would make sense if Entity used Serializable as a key which wouldn't preclude the current strategy for non-clustered SQL stores but would open a path to using UUIDs.


Affects: 3.0.1

1 votes, 4 watchers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions