Hi Team,
Hope you are doing well!
I’m looking for guidance and recommendations from experienced Shopify app developers who have recently modernized legacy Shopify applications to align with Shopify’s latest app development standards.
Current Application Overview
We currently have a Shopify Custom App developed using:
- PHP 7.1
- Shopify REST APIs
- Plain OAuth implementation
- No Shopify App Bridge tokenization/authentication system
- Custom loyalty platform integration
Current Business Use Cases
The application provides loyalty services to Shopify merchants and their customers, including:
- Customer enrollment into a loyalty program
- Customer loyalty profile management
- Loyalty points balance retrieval
- Reward catalog management
- Reward redemption processing
- Customer and Order webhook processing
- Shopify Extension Only App support for loyalty-related customer experiences
The app mainly consumes customer and order data through webhooks and synchronizes loyalty information with an external loyalty platform.
Target Architecture
We are evaluating a complete modernization of the application with the following stack:
Backend
- Python
- FastAPI
- Shopify GraphQL APIs
Shopify Integration
- Shopify App Bridge
- Session Token Authentication
- Shopify Managed OAuth
- Webhooks
- Shopify Events
- Extension-Only App capabilities
- Modern Embedded App architecture
From an application architecture perspective, what are the major transformations required when moving from:
PHP 7.1 + REST API + Legacy OAuth to Fast API + GraphQL + App Bridge + Session Tokens + Modern Shopify App Architecture?
What architectural patterns are recommended today?
Currently, we use traditional OAuth and stored access tokens.
- What is the recommended authentication flow today?
- When should App Bridge Session Tokens be used versus Admin API Access Tokens?
- How should Fast API validate Shopify session tokens?
- Are there reference implementations in Python/Fast API for embedded Shopify apps?
- Would you recommend FastAPI for Shopify app development?
- Which libraries, SDKs, and frameworks are commonly used today?
- Are there Shopify-approved or community-supported Python/FastAPI starter kits?
Our objective is to transform a legacy Shopify loyalty application into a modern, scalable, Shopify-aligned platform while minimizing technical debt and ensuring compatibility with Shopify’s future roadmap.
Any architectural diagrams, migration experiences, GitHub repositories, reference implementations, or best-practice recommendations would be greatly appreciated.
Thank you in advance for your guidance and expertise!
Current Stack: PHP 7.1 + REST API + OAuth
Target Stack: Python (Fast API) + GraphQL + App Bridge + Session Tokens + Webhooks + Extensions + Event-Driven Architecture + Shopify Custom App
Looking forward to learning from the community’s experiences.
Regards,
Jitesh Sinha (AnnexCloud)