Hi Team
We have some Microservice written in Spring Boot. Each of them are using a lot of java native API like UUID.randomUUID, CompletableFuture, ThreadPoolExecutor… Now, I need to do some POC with Temporal, but I found some recommendation about we cannot use java native, but instead we need use Temporal API Recommend .
Call
Workflow.sleep
instead ofThread.sleep
Use
Promise
andCompletablePromise
instead ofFuture
andCompletableFuture
But we cannot replace all exist java native API by Temporal API all at once. My plan is we will migrate some new function to use Temporal (only new function have Workflow, Activity… ) while old function (API) in that Microservice still using java native, and of course all of them are located in same Microservice projet.
Does this have any effect?