Which is best, J2EE or Django for a REST backend for AngularJS?
-
We are starting a startup and we decided the web application would have the following architecture: -AngularJS for the frontend -MySQL for persistence -J2EE for backend -And the communication between backend and frontend should be REST based After talking to some people, Django was suggested to replace J2EE as backend, being the 2 main arguments for that change: - The server cost to deploy the app and the license cost (we all agree on this one) - The rapid development that django provides Another friend that is working with Django and has worked a lot with Java says that Django doesn't scale well, and I should use J2EE since our project will turn big. I have experience with Java and I don't mind learning Python, what is the best technology in this case and since the communication will be REST based wont it be easy to port the technology if necessary? Also is it good security wise to make a REST based backend? Are session tokens enough to have a nice security? Thank you
-
Answer:
I'd say django! But its more a matter of personal prefference than anything. Also django is a much more geared towards APIs than EE
Harrison Shoebridge at Quora Visit the source
Other answers
If you do use Django, you will probably use Django Rest Framework or a similar tool to make building the REST endpoints easier. I have used DRF with AngularJS, and it worked very well, almost magically well. I'm guessing you would probably use Restlet (or similar?) for J2EE. You might want to ask your friend what they mean by 'scale', as Django powers some websites with significant amounts of traffic. The real answer to this question comes down to answering some additional questions: - Do you and your team know Java, or Python? - Are there more Java or Python devs in your local area? - Do you want to automatically map your rest APIs to objects in the database? - Are you OK with the request/response lifecycle, or will you be using websockets? - Who's going to support this? What platform is this going to go on? I would probably choose Django of Java, but there are probably circumstances when something else would be a better choice.
Kelvin Nicholson
Why just Django or J2EE? Have you looked at Rails as an option for your backend? Also, if you're looking at something with a RESTful interface, have you looked at any backend as a service providers, like Parse/Firebase/Backand? Otherwise it does come down to the questions of cost and expertise - if you know Java well enough, and can pay the licensing, go for that. REST APIs are as secure as any other application - it will largely depend on how much effort you put forth to making them secure. Session tokens might be secure enough if you're not storing sensitive data, but the code to manage those can grow complex fairly quickly as your application's functionality increases. What about generating an API key instead, on top of the session management, or having additional authentication around the more sensitive areas of your application's interface?
Jacob Edward Harrington
There's no 'best' here. There's only choice. I'm sure both of them are great technologies. I can confirm for Django as I have used it extensively. So it all boils down to your choice.
Onimisi Onipe
Related Q & A:
- Which Is Best Search?Best solution by Yahoo! Answers
- Which Is Best For You Olive Oil Or Coconut Oil?Best solution by Yahoo! Answers
- How To Send a Complex Object to a Rest Web Service?Best solution by codeproject.com
- Which is best pilot training institute in India which offers flying in some other country?Best solution by Yahoo! Answers
- Which is the best to start off as a fresher?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.