Click here to Skip to main content
15,884,993 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am making a website where user can login and make personalized cards place order and save that cards in their accounts for future use. E-commerce feature will be used for card orders. There will be roughly 50 categories of cards and around 100 cards per category plus user's personalized cards will also be saved in their accounts. So there will be approximately 7000-10000 cards on the website, which will be saved on server.

So what should i do so that website speed should not be slow? All cards will be editable.

And I have ASP.net and PHP teams both are intermediate. I don't know with which one i should go?

JavaScript will be used for card editor.

And for E-commerce feature should i be using dedicated server or shared server? Are there any dedicated E-commerce Servers?

And saving so many cards on website wouldn't it slow the overall speed and working of website? How should i save those cards?

Application should also be light weight.

So which platform should be better ASP.net or PHP? As we have Linux servers, so can ASP.net website be hosted on Linux Server?
Posted

So what should i do so that website speed should not be slow? All cards will be editable.
You should consider using minimized javascript and css, and as less heavy graphics as possible. Thus user experience will be better. But you can't control client browser performance. On server side it depend on the number of concurrent users, and of course on the performance of your server. And also on the platform - for example you can speed up php execution with compiling the code instead of interpreting (have a look here: http://phplens.com/lens/php-book/optimizing-debugging-php.php[^]).

And I have ASP.net and PHP teams both are intermediate. I don't know with which one i should go?
Well, that's your decision. I have many years of PHP behind me, but for some years I prefer ASP.NET MVC over anything else. But I would never recommend ASP.NET Web Forms. ASP.NET MVC is perfect for an e-commerce app, and you can spare a loooooot of work compared with php.

And for E-commerce feature should i be using dedicated server or shared server?
It depend on the criticality and the load. You could start with a shared one and grow with the needs.

Are there any dedicated E-commerce Servers?
This question here makes no sense from two reasons: from technical point of view, there is no dedicated e-commerce server - and you wrote, that you have Linux server.

And saving so many cards on website wouldn't it slow the overall speed and working of website?
Well, it depends on the load of the server, the complexity of the logic on server side and the network traffic generated by sending the card from client to the server. But as I don't know what a card is exactly, I can't tell you. As an idea: if you represent your cads as json data, you can probably save it in the database as it is.

How should i save those cards?
In a data repository, for example an RDBMS, like MySQL which is common in Linux-PHP-Apache scenarios.

So which platform should be better ASP.net or PHP?
For a business application I would certenly recommend ASP.NET MVC.

As we have Linux servers, so can ASP.net website be hosted on Linux Server?
You can. See: http://www.mono-project.com/docs/web/aspnet/[^]
 
Share this answer
 
v2
Comments
Rohit Korpal 30-Nov-14 10:14am    
Ok, but i have to use javascript as users can design cards at run time. You can see example at http://www.carddreams.nl/nl/bewerken/collectiekaart/192, for sample card, and full website for working.
So in PHP can be speed up. So by using ASP.net MVC how speed difference is between these two?
So if have to use PHP with budget restriction, will it be good for overall performance?
We thought of saving cards on server and then show image instead of cards on website, server link can be given on clicking image and card can be loaded.
how can we represent cads as json data, and probably save it in the database?
Zoltán Zörgő 30-Nov-14 10:33am    
You have no other option but to use Javascript on client side. There is nothing else. So from this point fo view does not matter what you have on server side.

PHP can be made compiled, ASP.NET MVC is by default compiled. Forget the speed for now. Both will perform as you need.

ASP.NET MVC is as free as PHP if you put it on Linux. So there is no financial difference at the start. When you think about the application lifecycle, PHP will cost you more.

You can generate image and store it in the database and store the json data side by side. Yes, this can be a good approach.
Rohit Korpal 30-Nov-14 15:00pm    
Ok, thanks for you guidance, will follow these advises.
aarif moh shaikh 3-Feb-16 3:03am    
good solution .. +5
Hi Rohit,

Q> So what should i do so that website speed should not be slow? All cards will be editable.
A> It should not impact if you use ASP or PHP language to build your ecommerce site. ASP or PHP is language only. The website speed depends on your coding and also your hosting provider. If you use shared hosting, maybe you can experience slow response time.

Q> And I have ASP.net and PHP teams both are intermediate. I don't know with which one i should go?
A> It depends on your preferences. It is only about language. I personally use ASP.NET, so if you ask me, then I will build my ecommerce site with nopCommerce. If you use PHP, then you can also use magento or prestashop.

Q> And for E-commerce feature should i be using dedicated server or shared server? Are there any dedicated E-commerce Servers?
A> If you want best performance, then of course dedicated server is the best. But, if you are just new and just start your ecommerce site, then you can use shared hosting. For ASP.NET, I would really recommend you to check asphostportal.com. I also use them.

Q> And saving so many cards on website wouldn't it slow the overall speed and working of website? How should i save those cards?
A> Hmm.... I believe no, you just need to optimize it. If you dont optimize it, maybe it can slow.

I hope my answer above can help you. :)
 
Share this answer
 
Comments
Rohit Korpal 2-Dec-14 7:51am    
OK, Thanks AdamASPGeek, for your answer it really helps me. Now all my queries have been cleared. It really helps me choosing respective platform as my requirement. And i will take care that all code is optimized.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900