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
{{ message }}
Repository navigation
Queue Services: Migrate DBC queues to Google Cloud #28386
DBC Phase 2DependencyTo highlight the dependency(intra team, external, third parties)Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end features
@severinbeauvais here's the plan from discussing with Melissa and Hrovje. My GCP access has just come through so starting on this.
The question about whether the new queue service can import legal-api as a whole (as the NATS one does), or the DBC parts in legal-api must be refactored into python/common is the first thing to figure out.
- Will create a new queue service for Google Cloud Service event handling ('business-digital-credentials') that will mostly be the existing business logic listening to GCP instead of NATS
- Upgrade to use Poetry
- Upgrade Python version (checking over existing code works with 3.13)
- Figure out if existing event formats tweak at all to accommodate in existing code.
So most of the existing code looks like it'll probably work as is I think once the new event subscribing comes through (might need to dig and verify that a bit, also depending on above Python/Poetry upgrades), though one other refactoring consideration below.
I don't have any experience with GCP pub/sub so some things for me to figure out with local testing and such.
One thing that could add on to that, is the existing queue service has some dependencies on legal-api and I guess there's an initiative or requirement to refactor out dependencies into common libraries (stuff under python/common, I think I have that right?)
So the existing queue service logic has a legal-api dependency to do the digital credential business logic. If it's not able (or not supposed to) to pull in legal-api as a whole then this stuff in legal-api would need to be refactored out to a module like has been done with other things.
Maybe that's something that is needing to happen anyways as part of replatforming work? Something that has to be done now, or has to be done down the line? Needs refactoring existing MVP and Phase 2 DBC code in legal-api if so.
Would add additional effort I haven't figured out yet.
After that this also will require deployment of this new service to GCP for hosting and any pipeline things that could be needed (CI/CD, etc), not sure what that entails but might just be the same thing as has been done with other migrated queue services.
I'll need some access to the GCP console (BCR Businesses 'Dev' Project a083gt-dev), can reach out to Patrick.
That's migrating existing MVP and Phase2 event code to new arch, then it would be moving on to handling the new event type (which is mostly code I already figured out in the NATS one so probably not much more there)
Thanks. Do you have an estimate on effort for this?
And a completion date? Hrvoje can fill you in but I believe LEAR services migration to GCP is in progress now... mostly working in Dev... will surely be deployed to Test soon, and then Prod. I assume your work needs to be done for DBC to keep functioning when the rest of the LEAR stuff is deployed.
Working with "at least a week" for implementation as the GCP pub/sub stuff is new to me, but have help from Hrovje (and have the access I need now), could get to more if that modularization to extract to python/common is needed and refactoring legal-api to account for that (or that might be very simple, not sure).
Yes if NATS goes away existing entity-digital-credentials event handling from older MVP work and newer Phase 2 work would stop functioning.
This ticket kind of became the "migrate DBC functionality to Google Cloud", which was complete back in the summer when GCP prod went live, so I'd keep the comments and description here and consider it done.
Then tracking a last revocation integration with Auth (which can be done now that GCP functionality is in) in this ticket #31277
DBC Phase 2DependencyTo highlight the dependency(intra team, external, third parties)Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end features
Activity
loneil commentedon May 21, 2025
In progress: add functionality in queue service to handle event types added in github.com//issues/27075 and do revocations.
severinbeauvais commentedon Jun 3, 2025
@loneil , what's the status (and plan) for this work?
loneil commentedon Jun 4, 2025
@severinbeauvais here's the plan from discussing with Melissa and Hrovje. My GCP access has just come through so starting on this.
The question about whether the new queue service can import legal-api as a whole (as the NATS one does), or the DBC parts in legal-api must be refactored into
python/commonis the first thing to figure out.That's migrating existing MVP and Phase2 event code to new arch, then it would be moving on to handling the new event type (which is mostly code I already figured out in the NATS one so probably not much more there)
severinbeauvais commentedon Jun 4, 2025
Thanks. Do you have an estimate on effort for this?
And a completion date? Hrvoje can fill you in but I believe LEAR services migration to GCP is in progress now... mostly working in Dev... will surely be deployed to Test soon, and then Prod. I assume your work needs to be done for DBC to keep functioning when the rest of the LEAR stuff is deployed.
loneil commentedon Jun 4, 2025
Working with "at least a week" for implementation as the GCP pub/sub stuff is new to me, but have help from Hrovje (and have the access I need now), could get to more if that modularization to extract to python/common is needed and refactoring legal-api to account for that (or that might be very simple, not sure).
Yes if NATS goes away existing
entity-digital-credentialsevent handling from older MVP work and newer Phase 2 work would stop functioning.severinbeauvais commentedon Aug 29, 2025
Any updates on this ticket?
loneil commentedon Nov 13, 2025
This ticket kind of became the "migrate DBC functionality to Google Cloud", which was complete back in the summer when GCP prod went live, so I'd keep the comments and description here and consider it done.
Then tracking a last revocation integration with Auth (which can be done now that GCP functionality is in) in this ticket #31277
[-]Legal API: queue updates for account removal[/-][+]Queue Services: Migrate DBC queues to Google Cloud[/+]severinbeauvais commentedon Nov 13, 2025
Sure. Moving to Done.