Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
We are developing a flash game with flex as client and java as server. For the communication between client and server we are planning to use BlazeDS. We are hoping that hundreds of thousands (maybe millions) of players will play the game concurrently but we find out that we would have problems on scaling because of the BlazeDS's limitations on the number of clients it can handle. We are not able to afford LCDS, and heard that GraniteDS does also have limitations (higher than BlazeDS but still not enough).
Would deploying our application to a PAAS such as Amazon Elastic Beanstalk solve this scaling problem considering the Blazeds's limitations?
To summarize very quickly
With BlazeDS you have a limitation of a few hundreds connections per server.
With GraniteDS you have a limitation of a few thousands, possibly a few tens of thousands connections per server depending on your use case, size of payload, etc. (in fact the actual limits are those of the app server asynchronous I/O support, tomcat, jetty or whatever).
Using clustering (on a PaaS or wherever) would bring you to much higher numbers (not sure you can get to millions though).
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
In building java chat application, is Web Service better to use than JMS, RMI, or Socket programming?
My VPS has the ff: 512MB Memory, 1 Core Processor, 20GB SSD Disk and 1TB Transfer.
My target number of users in the same time is, 5-30.
I think the way to handle the changes in chatbox is using Polling.
Is my VPS can handle that load if I am using web service?
If I am going to use other technologies like RMI or JMS?
Is my VPS can handle it?
If you have a web frontend for your chat, using websockets (if you want to use java on the backend, it's supported by jetty but also by other http servers) instead of polling is a more common approach.
Definitely no JMS,RMI or sockets, if the client is a browser, if it's a desktop client using something based on sockets and a custom protocol could be the easiest way to go.
The number of connections your VPS will handle is dependant on many factors, included how performant your application will be.
You should give node.js a try. Search for "node.js chat apps".
Node.js chat server app is going to have very little memory footprint giving you more memory for the server at runtime.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I choose java to make my web application with maven + hibernate + spring MVC + apache tomcat server (Java EE).
My web application will have many users and many visitors every day.
But my friend told me that web application with java don't support a lot of connections and it's made just for Intranet and business application with network within an organization.
So is it true apache tomcat can't handle all that traffic ?
i'm not looking for who is the best between java, php and .NET i want just know if web application with java can handle a big traffic ?
also explain me if there is some other negative points of using java and apache tomcat server.
The Java based technology stack you describe is extremely scalable, if you want it to be, and I would have no worries about using it for high traffic applications.
You may want to look at distributed hosting and load balancing, to make things more reliable. Lots of high traffic applications use Java and Spring stacks.
using plain old jsp/servlets are faster than spring and hibernate because spring or hibernate have a middle tier with classes which renders the page slowly and takes more memory at the server.
For production environs with huge scale applications you will end up writing plain jsp/servlets as they are a breeze to write and maintain.
Also i would like to add that struts library(jar file) had some security vulnerabilities in late 2013 only. Stay away from Struts and Spring.
People may be down voting but there is truth behind what i have actually experienced.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Does anyone know how much effort, time and budget (and even if it's posible) is required to change traditional J2EE application development to "on-the-cloud" services, I mean databases, datasources, security concerns, etc.
thanks in advance.
Possible, certainly YES!!! Depending on the architecture of your application you may choose from the following solutions (my suggestions):
IAAS: Amazon EC2, Google Compute Engine, etc.
PASS: Cloudbees, Jelastic, Openshift, Heroku, Amazon Elastic Bean Stalk, etc.
Effort and Time
I would say the effort required is minimal, almost as equal to a local setup for IAAS and even easier with PAAS.
Budget
These services are also relatively cheap, check out their pricing info.
Databases/Datasources
Easily configurable.
Security Concerns
Should be same as the ones applicable if you had locally hosted.
You may wish to have a look at a recent guide published by DZONE
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to build a client-server architecture software, and I want the server component can be easily installed by average people on their Windows or Mac OS X operating systems.
The server-side:
1. contains a self-running web server
2. hosts a web-based administrator site to manage business data and master data
3. provides API endpoints (in JSON) over WIFI
4. has sqlite 3 or MySQL database to hold business data
5. the data volume is low, the
The client-side are mobile applications which talk with server via API endpoints over WIFI.
I started thinking about Java, as JVM is installed on almost every computer, but what about the web-server and database? In a sense, as I use MAMP on my Mac a lot, I like the approach of this nice product, easy install, one click to launch all services.
Can anyone point me a possible direction?
You have suggested MySQL. That sounds fine to me.
I would suggest Tomcat as a pretty widely used web-server.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
what is the best hosting for java web application?
Amazon Ec2 - is to expensive (about 60$ per small instance a month)
Google Application - is not flexible in persistence and not fully support JDK
"best" for what purpose? The point of Amazon EC2 is that you can scale up easily and only pay for what you use.
If scaling is not an issue to you (i.e. you don't have many concurrent users and don't expect this to change quickly), then the best option is probably a virtual root server (offered by pretty much any general hosting provider these days). It offers maximal flexibility for a low price, but with limited performance, and it requires you to handle administration yourself.
javaservlethosting.com is pretty cheap if you work with tomcat and don't use hibernate. I switched over to cloud on softlayer.com after I got the info that I can't use hibernate. They have some pretty good deals but everything is over $60.