golang-url-shortener icon indicating copy to clipboard operation
golang-url-shortener copied to clipboard

Wouldn't it be better if the application was following hexagonal architecture?

Open lakshaytalkstomachines opened this issue 5 years ago • 2 comments
trafficstars

Whole Application seems to follow MVC Architecture which makes it difficult to port to other languages and/or frmaework, it is highly dependent on Gin. Maybe something like go-kit?

lakshaytalkstomachines avatar Oct 04 '20 14:10 lakshaytalkstomachines

Hi, it was one of my first bigger Go projects. I personally would probably archive it soon since it does not follow good Go best practices.

mxschmitt avatar Oct 04 '20 14:10 mxschmitt

oh can you direct some things over to me because i am learning go and would love some of the articles is that's not a problem. Also there is one question i have been meaning to ask someone: Say you need to get some of the data from data base, so you create a function in your service, but the things is the data that is required in the endpoint is not the data as same as the data in the database. So do you change the data in service layer or in transport layer?

lakshaytalkstomachines avatar Oct 06 '20 19:10 lakshaytalkstomachines