Migrate surf-transaction to Microservice Architecture with RabbitMQ#11
Draft
Copilot wants to merge 3 commits intoversion/1.21.11from
Draft
Migrate surf-transaction to Microservice Architecture with RabbitMQ#11Copilot wants to merge 3 commits intoversion/1.21.11from
Copilot wants to merge 3 commits intoversion/1.21.11from
Conversation
Co-authored-by: twisti-dev <76837088+twisti-dev@users.noreply.github.com> Agent-Logs-Url: https://github.com/SLNE-Development/surf-transaction/sessions/76a093c8-452c-41a7-b164-eaa167e15e4b
Co-authored-by: twisti-dev <76837088+twisti-dev@users.noreply.github.com> Agent-Logs-Url: https://github.com/SLNE-Development/surf-transaction/sessions/76a093c8-452c-41a7-b164-eaa167e15e4b
Copilot
AI
changed the title
[WIP] Analyze module structure of target project
Migrate surf-transaction to Microservice Architecture with RabbitMQ
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates
surf-transactionfrom a monolithic core module (direct DB access on Paper/Velocity) to a proper microservice architecture where client plugins communicate with a standalone microservice via RabbitMQ.Module restructure
surf-transaction-coresrc/)surf-transaction-core-commonsurf-transaction-core-client@AutoService)surf-transaction-microservicesurf-transaction-paper/velocity:core:core:core-client,CLIENT_APIRabbitMQCore interfaces
Introduced
CoreAccountService,CoreCurrencyService,CoreTransactionServiceextending the API interfaces with the extra methods (e.g.getDefaultAccount,deleteAccount,addMemberToAccount).TransactionalImpl,AccountAccessImpl, andAccountMemberOperationsImplnow resolve to these via service locator — transparently dispatching to either DB-backed or RabbitMQ-backed impls depending on the JVM.RabbitMQ packets (core-common)
16
@SerializableRequest/Response pairs covering all service operations.TransactionResultPacketis a new sealed class for safe wire transport ofTransactionResultsubtypes.Microservice entry point & handler
TransactionMicroservicebootstraps the instance and registersTransactionRabbitHandler. All@RabbitHandlermethods userequest.launch {}(norunBlocking) sinceRabbitRequestPacketimplementsCoroutineScope.Serialization additions
@Serializableadded to:AccountDeleteResult,AccountMemberResult,AccountCreationResult.FailureReason,CurrencyCreateResult,CurrencyDefaultResult,TransactionImplserializer()companion methods on affected enums✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.