You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current architecture is over-engineered for the use case, using SQS queues for rare operations like creating/starting/stopping indexers. This adds unnecessary complexity and infrastructure requirements.
Proposed Changes
Remove all SQS-related code and configurations
Remove the entire consumer pattern
Create a new IndexerService struct to handle operations directly:
Update API Handlers
Streamline error types for direct operations
Remove SQS-related test setup
Simplify test cases to focus on direct service operations
Update integration tests to remove queue checks
Infrastructure Updates
Remove LocalStack SQS configuration
Update deployment configurations to remove SQS permissions/setup
Simplify local development setup
Benefits
Simpler codebase
Easier to understand and maintain
Reduced infrastructure requirements
Simpler local development
More direct error handling
Fewer dependencies
Migration Steps
Create new service structure
Update tests
Remove old code once new implementation is verified
Update documentation
Breaking Changes
API behavior will change from async to sync for some operations
Deployment requirements will change (no SQS needed)
The text was updated successfully, but these errors were encountered:
Simplify Indexer Service Architecture
Problem
Current architecture is over-engineered for the use case, using SQS queues for rare operations like creating/starting/stopping indexers. This adds unnecessary complexity and infrastructure requirements.
Proposed Changes
IndexerService
struct to handle operations directly:Benefits
Migration Steps
Breaking Changes
The text was updated successfully, but these errors were encountered: