You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove redis wrapper, use the redis-go client directly, framework just need to provide some extra function like selecting the correct replica and maybe json decode encode function -> then no need to add new function and update the framework every time when we want to use some new redis function .
move every dependencies to the bean object, for example sentry, config, logger, handler, service, repository/model. it makes the structure cleaner and more testable.
remove the gorm, just use go-sql-driver and write raw query. We can have more control on what we are doing and easier for code review, because we can see the raw query directly.
better error handlings and organizing.
eventually maybe we can remove Echo framework as well, now we are just using some middleware and the sentry-echo package. And we also twist and replace a lot of the default echo middleware to fit our use case, we can completely build our own middleware just base on the official golang way.
In this case, the framework should focusing more on the tenant support, and the style can be follow the original golang idioms.
And actually we don't need a complete framework to build the application, we just need some 3rd party router for easy route parsing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Echo
framework as well, now we are just using some middleware and the sentry-echo package. And we also twist and replace a lot of the default echo middleware to fit our use case, we can completely build our own middleware just base on the official golang way.In this case, the framework should focusing more on the tenant support, and the style can be follow the original golang idioms.
And actually we don't need a complete framework to build the application, we just need some 3rd party router for easy route parsing.
Beta Was this translation helpful? Give feedback.
All reactions