Description
Currently, GigaMap provides its own internal synchronization when using the GigaMap.store() method. However, when developers use the standard StorageEmbedded.store(gigaMap) entry point, this internal synchronization is not automatically applied.
This requires the developer to manually manage synchronization at the application level specifically for GigaMap instances, even though the component already has the necessary logic built-in. Since StorageEmbedded is the primary API for persisting entities, it is more intuitive for users to expect the same level of thread safety regardless of the storage method used.
Proposed Improvement
To improve User Experience (UX) and API consistency, we should ensure that the standard storage API leverages the internal synchronization of the GigaMap component:
- Automatic Sync Delegation: Update
StorageEmbedded.store(Object) to recognize GigaMap instances and utilize their internal synchronization logic.
- Unified API Behavior: Remove the need for manual locking by the programmer when interacting with
GigaMap through the global storage manager.
Goal
Simplify the development process by making GigaMap thread-safe by default through all storage entry points, ensuring that the internal synchronization logic is always utilized without additional boilerplate code.
Description
Currently,
GigaMapprovides its own internal synchronization when using theGigaMap.store()method. However, when developers use the standardStorageEmbedded.store(gigaMap)entry point, this internal synchronization is not automatically applied.This requires the developer to manually manage synchronization at the application level specifically for
GigaMapinstances, even though the component already has the necessary logic built-in. SinceStorageEmbeddedis the primary API for persisting entities, it is more intuitive for users to expect the same level of thread safety regardless of the storage method used.Proposed Improvement
To improve User Experience (UX) and API consistency, we should ensure that the standard storage API leverages the internal synchronization of the
GigaMapcomponent:StorageEmbedded.store(Object)to recognizeGigaMapinstances and utilize their internal synchronization logic.GigaMapthrough the global storage manager.Goal
Simplify the development process by making
GigaMapthread-safe by default through all storage entry points, ensuring that the internal synchronization logic is always utilized without additional boilerplate code.