As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am trying to persuade my boss about using Grails.
I tell him it is the most productive way to implement our shopping web site.
But he has doubts about its scalability when traffic gets higher and higher.
So can you give examples of enterprise level web sites with
notable traffic implemented in grails.
Also is there anything that I have to take into account when building
such an enterprise level web site that will probably have high
traffic.
Note: We may expect 10K daily hit.
Take a look at the Grails Success Stories. The most popular sites may be: Sky.com and mp3.walmart.com
Groovymag has some good information on this but costs $5 per issue. This issue has both an interview with a guy from Sky which is a very large site that uses grails as well as information in implementing an e-commerce site using Grails. The main point I got from reading the interview from one of the sky.com developers is that they have no problem scaling to millions of page views by smart use of caching. Although your site may have 10000 views a day most of those views should not need to access the database. You can cache information on each product available in order to limit the number of queries necessary when viewing the site. This should reduce the traffic on your database and make GORM less of a possible bottleneck. I have not been able to find out how GORM performs under heavy load, but if worse comes to worse you could write your performance critical database code using pure JDBC calls and put it in a service.
If you do the math, 10K daily hits is less than one hit per second- even if all 10K hits happened during a 3 hour "peak traffic" window. Even assuming you meant "page renders" and not hits, you are talking about a really miniscule amount of traffic.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am using Parse service for my authentication in my iOS application.
I am beginner and I do not have enough information for setting my own authentication server. So far I have made some progress with Parse in my application. So my question is the following.
Should I train myself for learning setting my own server for authentication and implement that in my application or should I just keep going to use Parse? Please note that Parse is letting 1.000.000 api request for month in free edition (I think this is a sufficient number for a application with average user account but I would be happy to see your oppinions).
While it is personal question i would please to see different aspects. So be free to share your ideas.
This is a very personal answer based on my experience and preferences.
Parse is a very good service and idea that allows you to think only to the application and leave out complicated stuff like networking. At the same time it forces you to stay tied with it. So, for example, what could it happen if tomorrow services are limited (not more 1.000.000 API requests) or stopped (I hope not)?
Yes, networking is complicated but also challenging. So, IMHO, if you want to be a good developer, go and create your own service.
To start you can set up a REST architecture where JSON is used for messaging. This is quite simple to achieve in many programming languages (PHP, JAVA, Rails, etc.). Out of there, you can find very good external libraries (like AFNetworking) that can be used to configure the communication in your application.
You can find a complete example where authentication has been set up at Authentication with AFNetworking.
P.S. You can see the video only if you are a subscriber but code is free of charge on Github. Follow the links.
Hope it helps.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
We're looking into using Orchard CMS for a project. I know the CMS hasn't been around for a long time, but I was wondering if there were any known high profile and successful case studies using Orchard CMS or its predecessor Oxite?
Thanks.
The recently released Orchard Gallery is itself built using Orchard: http://orchardproject.net/gallery. Also, the NuGet gallery website is using the exact same code as the Orchard Gallery, with a different theme applied: http://nuget.org. What's more, the Orchard/NuGet gallery is mostly implemented as a custom Orchard module, and that code is open source. Check out http://orchardgallery.codeplex.com for more details.
Bath Spa implemented Orchard for both their registration and housing booking systems.
http://registration.bathspa.ac.uk
http://housing.bathspa.ac.uk
I think they are also due to roll out the external site in Orchard too at some point.
Granted the sites are not 'high profile' in techie circles, but for a poly tech university in the UK to adopt open source, that's quite a big thing for them.
You can find lots of examples of websites using Orchard on Show Orchard. Featured websites come with interviews of the developers.
We have just finished building http://www.oxfordeconomics.com/ with Orchard CMS. This is both a marketing and subscription content site which receives on average 1000 visitors and 4000+ page views daily. It operates in a niche business area and is not a consumer site.
There were a number of challenges regarding caching, performance of taxonomies, widget management to name a few. Orchard's architecture is very flexible, but there's obviously a learning curve. I'm happy to discuss more details at http://sophilabs.com (contact)
Yes, it's extremely early for that as far as Orchard is concerned. There are a few sites using it but nothing "high-profile". Nor should there be at this point.
It's a little different for Oxite, which has been running some pretty high profile sites such as the Mix site and others around the people doing Channel 9. It hasn't been made into a case study that I know of though.
The MIX11 site was built on Orchard: http://live.visitmix.com/news/mix11-adopts-orchard.
I would suggest to check video tutorials , that could be found on http://pluralsight.com/
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm working on an automatic trading system. What sorts of safe-guards should I have in place?
The main idea I have is to have multiple pieces checking each other.
I will have a second independent little process which will also connect to the same trading account and monitor simple things, like ensuring the total net position does not go over a certain limit, or that there are no more than N orders in 10 minutes for example, or more than M positions open simultaneously. You can also check that the actual open positions correspond to what the strategy process thinks it actually holds. As a bonus I could run this checker process on a different machine/network provider.
Besides the checks in the main strategy, this will ensure that whatever weird bug occurs, nothing really bad can happen.
Any other things I should monitor and be aware of?
Alot of algorithmic trading systems make use of ESP/CEP (Event-stream processing/complex event processing) systems in order to make trading decision on the basis of market activity (tracking VWAP being the canonical example).
But perhaps you could create a stream from the algorithm's activity, and then have an ESP/CEP system use this stream to act as a watchdog over the algo's activity; if the algo starts trading too much within a rolling 10-minute window, it could send a message to your middleware to shutdown the FIX connection, etc. It would also be wise to monitor major indexes that you are trading against to see if the market is going through a particularly volatile moment... algos that trade well during periods of relative low volatility can quickly run amok when a market starts to crash.
Esper is an open-source ESP system for Java and .Net that is worth checking out.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I need to add a real time dashboard of data to a ASP.NET MVC application. The dashboard needs to be refreshed every few minutes from SQL server 2008. I was going to use ASP.NET MVC, with jQuery and AJAX. But Silverlight 3 is a possible option (each client has Silverlight 3 installed). I know WPF, is it worth the jump to SL 3 for this?
A dashboard is an excellent use of Silverlight. You can create some terrific looking UIs and it can be used to create a very compelling visual experience. Charts and gauges will pop off the screen. Your data will look incredible.
There is a learning curve when developing your first Silverlight app so make sure that you're clear on what the final product will be. If the requirements are well defined, you'll be able to determine if you think it is something that you and your team will be able to achieve.
For a dashboard, I think a JQuery solution works best and that is the direction I would go in. I'm still a little unsold on the long term future of Silverlight compared to the AJAX/HTML 5 future.
I would only go to SL 3 under one of the 2 scenarios below.
You need a rich UI experience (ex. fancy charts, graphs, etc..) that WPF/SL will help you achieve easier. If the user interacts with the dashboard, then that makes it a good candidate
You want to learn SL 3 or want your team to learn SL 3
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
are there books on designing highly scalable web sites?
(from a programmers perspective)
I read how ebay does it:
Partition by Function, Split Horizontally, Avoid Distributed Transactions, Decouple Functions Asynchronously, Move Processing To Asynchronous Flows, Virtualize At All Levels, Cache Appropriately.
Are these things actually taught or it is so niche that there isn't really any books on these topics?
The best I've found is
Scalable Internet Architectures
Building Scalable Web Sites has a good reputation.
Not sure on books but heres a good reference for Building highly scalable applications
Web-servers are stateless, web-application are statefull -- this leads to dependance on a data-layer to persist state. Relational databases are often the weakness to hard-core scaleability. For this reason I suggest looking at the research papers and presentations from the nosql community.
Nosql databases provide plug&play expansion, and require programming changes from the web-applications, therefore you will learn a lot about scalability from the material.
You will enough material by scholar.google.com'ing the names of the nosql databases.
I've written an eBook called "Web Scaling vol. 1" for Small Architectures. It has a few interesting examples for caching, splitting database reads/writes, and load-balancing across a pool of web servers. It might be of interest.
http://scalingexperts.com/books