---
title: "Comment by Satria H R Harsono on \"Modern API design with Golang, PostgreSQL and Docker\" | Hashnode"
description: "Don&#39;t you consider to follow clean architecture? The way you instantiate the pgdb then passing it to model is a bit daunting"
url: "https://hashnode.com/posts/modern-api-design-with-golang-postgresql-and-docker/637b2c67a60bf3b75346af09/comment/637c261c698c50b963506ceb"
---

[Discussion](https://hashnode.com/posts/modern-api-design-with-golang-postgresql-and-docker/637b2c67a60bf3b75346af09)

Comment [Modern API design with Golang, PostgreSQL and Docker](https://hashnode.com/posts/modern-api-design-with-golang-postgresql-and-docker/637b2c67a60bf3b75346af09)

[Satria H R Harsono](https://hashnode.com/@satriahrh)

[Nov 22, 2022](https://hashnode.com/posts/modern-api-design-with-golang-postgresql-and-docker/637b2c67a60bf3b75346af09/comment/637c261c698c50b963506ceb)

Don't you consider to follow clean architecture? The way you instantiate the pgdb then passing it to model is a bit daunting

[Bogdan N.](https://hashnode.com/@bog)

[Nov 22, 2022](https://hashnode.com/posts/modern-api-design-with-golang-postgresql-and-docker/637b2c67a60bf3b75346af09/comment/637c261c698c50b963506ceb#reply-637c74092c7f04bb5bdbc1af)

Sure, some people have mentioned it and there's a discussion about my article in this reddit thread that can be pretty helpful for anyone who wants to dig in deeper: [reddit.com/r/golang/comments/z0t2qc/modern\_api\_de…](https://www.reddit.com/r/golang/comments/z0t2qc/modern_api_design_with_golang_postgresql_and/)
