Comparison of Web Framework-Spring and Echo

XiaoFeng Shi
2 min readNov 23, 2020

In backend development, we may be struggle in finding a suitable framework. Recently I switched my backend development from Java Spring framework to Golang Echo framework. So here I want to share my personal opinion for Java and Golang in backend development.

Golang is a relatively new language, with its fast growth, it has been quite popular in backend development for web service among a quantity of famous IT companies. Meanwhile Java has dominated server development for quite long time, even though recently the usage of Java is going down, it is still one of the best choices for backend development.

Spring Framework is mature web framework, it is most widely used in Java backend development as it provides comprehensive functionality. It is reduce the difficulty to integrate with MyBatis or Hibernate to control database, it also could use Spring MVC or Struts to support MVC development. One of Spring’s advantages is that it uses an external XML files for configuration, which helping developer to divide services into database, servlet and others modules easily with the XML configuration. It is good for further maintenance, because maintenance team could control service just by editing the XML config file without accessing to code. It provides safe and clean environment for both develop team and maintenance team.

Echo Framework is relatively new framework. Actually it mostly provides the C-part (Controller) of MVC. Echo provides only the servlet part of framework, developer need to find other package to integrate with database or other API. Comparing to Spring, Echo is extremely easy to launch a server. Developer could run a server just with a few lines of codes.

Comparison for Spring and Echo

As a conclusion, Spring performs better in flexibility and structure, more suitable for deliverable projects. Spring also performs well if there is higher requirement of middleware. But if we consider more on server optimisation, Echo would be a better choice.

--

--