What is the best architecture to handle synchronou...
# support
t
Hello, I am wondering what is your recommendation to handle synchronous business logic scripts. I know we can do a lot with medplum bots but here are some use case where I would need to have a synchronous answer to my api call : - Mobile application needs to upload a file to S3 server and requests a SignedUrl to the API - Mobile application sends a file to the API and API need to verify that the file has the expected format before creating the Observation and returning the ObservationId to the mobile application. In such cases what would be your recommendation ? What I have in mind at the moment is : - Create an API that when requested, starts by checking the medplum token, and then applies the wanted business logic. Let me know if you have other solutions in mind. Thank you.
r
HI @thomabig - have you checked out the
Bot/$execute
endpoint? This would allow you to call Bots in a synchronous manner
t
Ohoh that sounds cool let me check that 🙂
150 Views