Where to Store Data in Forge Apps
Andrei Pisklenov
Atlassian Solutions Architect | Atlassian Developer (Cloud and Data Center) | Certified Atlassian Expert
In this article, we’ll explore various options for storing data in Forge apps. We’ll start with the most common choices — Entity Properties and Forge Storage — then discuss more specialized alternatives, such as Content Attachments and External Databases. We'll examine the pros, cons, limitations, and use cases for each method to help you choose the best fit for your app. While this article doesn't dive into code, future videos will feature practical code examples.
If you prefer a video format, watch the video https://www.youtube.com/watch?v=FJLfKSLfE8E
Introduction
When building a new Forge app or enhancing an existing one, you’ll often need to store configurations, templates, logs, or other core data. Depending on your app's needs, you have several storage options to consider. The two primary choices are Entity Properties and Forge Storage, which offer different benefits and limitations. For specific use cases, alternative methods like Content Attachments or External Databases may be more appropriate.
Entity Properties
Jira Entity Properties https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/.
Confluence Entity Properties https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/.
Pros:
Cons:
Limitations:
Use Cases:
Forge Storage
Forge Storage quotas and limitations https://developer.atlassian.com/platform/forge/platform-quotas-and-limits/#storage-quotas.
Pros:
Cons:
Limitations:
Use Cases:
领英推荐
Content Attachments
Jira Issue attachments https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-group-issue-attachments.
Confluence attachments https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment/#api-group-attachment.
Pros:
Cons:
Limitations:
Use Cases:
Remote Databases or External Applications
Forge Remote https://developer.atlassian.com/platform/forge/remote/.
Pros:
Cons:
Limitations:
Use Cases:
Conclusion
Choosing the right data storage solution for your Forge app depends on your specific needs and the scale of the data you’re handling.
By understanding the strengths and limitations of each option, you can make an informed decision that best suits your app's requirements. Stay tuned for upcoming videos where we’ll dive deeper into real-world examples and show you how to implement these storage methods effectively!
Great job Andrei Pisklenov!
Product Owner of Report Builder (Actonic GmbH)
2 个月Andrei Pisklenov thanks for the brilliant article! And for those still considering the best option, please also follow this thread https://community.developer.atlassian.com/t/forge-storage-data-persistency-behaviour/80174/11 , as it reveals some details about Forge storage, which could be not explicitly clear from the documentation, but important for the application support!