Skip to content

Queue Services: Migrate DBC queues to Google Cloud #28386

Closed

Description

@severinbeauvais

I believe these are the changes needed to move the queue from OCP to GCP. -- SB

Activity

  1. added
    Entities Team
    on May 12, 2025
  2. added
    Dependency
    on May 12, 2025
  3. loneil commented on May 21, 2025

    @loneil
    Collaborator

    In progress: add functionality in queue service to handle event types added in github.com//issues/27075 and do revocations.

  4. severinbeauvais commented on Jun 3, 2025

    @severinbeauvais
    CollaboratorAuthor

    @loneil , what's the status (and plan) for this work?

  5. changed the issue type fromtoon Jun 3, 2025
  6. loneil commented on Jun 4, 2025

    @loneil
    Collaborator

    @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)

  7. severinbeauvais commented on Jun 4, 2025

    @severinbeauvais
    CollaboratorAuthor

    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.

  8. loneil commented on Jun 4, 2025

    @loneil
    Collaborator

    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.

  9. severinbeauvais commented on Aug 29, 2025

    @severinbeauvais
    CollaboratorAuthor

    Any updates on this ticket?

  10. loneil commented on Nov 13, 2025

    @loneil
    Collaborator

    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

  11. changed the title [-]Legal API: queue updates for account removal[/-] [+]Queue Services: Migrate DBC queues to Google Cloud[/+] on Nov 13, 2025
  12. severinbeauvais commented on Nov 13, 2025

    @severinbeauvais
    CollaboratorAuthor

    Sure. Moving to Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DBC Phase 2DependencyEntities Team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions