App reviews, troubleshooting, and recommendations
Hi,
I am new to app development.
When we develop a Shopify app, there can be information like app settings, user data, etc that needs to be stored.
What are the most common and efficient ways to store that information (if I am using remix)?
Hello @wayforward
The best way to store application settings and user data is by utilizing a database. Among the most popular choices in app development are MongoDB and MySQL, both of which offer robust capabilities. You can securely store and manage detailed data on your server using these databases.
To implement this, you should create a Server API within your Remix app. The default Shopify Remix template includes Prisma ORM, which you can leverage for communicating with the database.
How about using metaobjects for storing basic product/customer related data instead of a database?
Hello @wayforward
In large and scalable applications, storing user data in metaobjects is not advisable due to security concerns. Creating private metaobjects may provide some level of privacy, but storing sensitive information like user data in this manner remains a risky approach. Moreover, if you intend to provide merchants with insightful analytics data through your app, storing this data in metaobjects can introduce complexities.
To ensure scalability and enhance security in your application, it is recommended to utilize your own database infrastructure. This approach offers greater control and robustness in managing and securing user data and analytics information
- If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024