hermeznetwork / hermez-node

Hermez node Go implementation
GNU Affero General Public License v3.0
61 stars 33 forks source link

Use other web framework #1054

Open ARR552 opened 3 years ago

ARR552 commented 3 years ago

Gin has limitations regarding the paths you can use and sometimes can be a problem

marioidival commented 3 years ago

Alternatives:

jeffprestes commented 3 years ago

Fiber is a nice idea. Fiber has much similar interface than Gin requesting less changes in the code, also Fiber is more performatic than Echo.

ARR552 commented 3 years ago

Gin has this limitation that I faced some time ago. For example, you can not define these two route paths together: /v1/tokens/:tokenId => retrieve the full info /v1/tokens/price/:tokenId => retrieve price info

More info: https://github.com/gin-gonic/gin/issues/1730