Real-Dev-Squad / notification-service

MIT License
0 stars 1 forks source link

Choosing Language for notification service [RFC] #8

Closed vikhyat187 closed 1 year ago

vikhyat187 commented 1 year ago

We are trying to develop the service in any of the two languages Java or Go, as we don't have any projects in RDS on these languages.

In my opinion, we should go with Java to have Object-oriented features.

Features Golang Java
Language Procedural, simple OOPS-based, flexible
Performance Faster flexible Slower than Golang since it runs on JVMs
Syntax No classes and objects Uses objects and classes
Garbage Collection powerful Not so powerful in Golang
Concurrency - Use goroutines- Consumes less memory space - Use threads- It consumes more memory space than Golang
Cross-platform YESCreates binaries YESCreates Java Byte codes
Use of pointers YES NO
Reflection Convenient Complicated
Use of exceptions YES NO
Applications Best for Microservices Best for mobile and complex applications
Community Small Large

https://www.turing.com/blog/golang-vs-java-which-language-is-best/ https://mindmajix.com/golang-vs-java

vikhyat187 commented 1 year ago

We have decided to go with Golang, as its relatively new language.