ardanlabs / service

Starter-kit for writing services in Go using Kubernetes.
https://www.ardanlabs.com
Apache License 2.0
3.59k stars 649 forks source link

Question: API integration #393

Closed belsakn closed 5 months ago

belsakn commented 5 months ago

Hello,

This is more of a request than a question.

First, I would like to express my appreciation for this repository. It looks great, and I thank you for sharing it.

I have a query regarding integrating a third-party API (whether external or internal). Would you approach this integration in the same way as you would with a database, or would you take a different approach?

Thank you for your response.

himynamej commented 5 months ago

Hey ,I work on a big project with this amazing structure,and I do what you said,yeah that's work great .

ardan-bkennedy commented 5 months ago

I tend to write packages for 3rd party APIs and foundational packages and then use them in a business package. If the API is handling storage concerns, you could add them under stores. Do what you think is right and then evaluation over time.