13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Next<br />

339<br />

Evolving Governmental Policies <strong>and</strong> Taxes<br />

Depending on where you live, legislation relating to Internet-based businesses might be<br />

nonexistent, in the pipeline, or immature.This situation is unlikely to last. Some business<br />

models might be threatened, regulated, or eliminated by future legislation.Taxes might<br />

be added.<br />

You cannot avoid these issues.The only way to deal with them is to keep up to date<br />

with what is happening <strong>and</strong> keep your site in line with the legislation.You might want<br />

to consider joining any appropriate lobby groups as issues arise.<br />

System Capacity Limits<br />

One issue to bear in mind when designing your system is growth.You certainly hope<br />

your system will get busier <strong>and</strong> busier.You should therefore design it in such a way that<br />

it can scale to cope with dem<strong>and</strong>.<br />

For limited growth, you can increase capacity by simply buying faster hardware, but<br />

there is a limit to how fast a computer you can buy. Is your software written so that after<br />

you reach this point, you can separate parts of it to share the load on multiple systems?<br />

Can your database h<strong>and</strong>le multiple concurrent requests from different machines? Is your<br />

database connection code written so that you can later change it to write to a <strong>MySQL</strong><br />

replication master <strong>and</strong> read from a variety of slaves?<br />

Few systems cope with massive growth effortlessly, but if you design it with scalability<br />

in mind, you should be able to identify <strong>and</strong> eliminate bottlenecks as your customer base<br />

grows.<br />

Choosing a Strategy<br />

Some people believe that the Internet changes too fast to allow effective planning.We<br />

would argue that this very changeability makes planning crucial. If you do not set goals<br />

<strong>and</strong> decide on a strategy, you will be left reacting to changes as they occur rather than<br />

being able to act in anticipation of change.<br />

Now that you have examined some of the typical goals for a commercial website <strong>and</strong><br />

some of the main threats, we hope you have some strategies for your own.<br />

Your strategy will need to identify a business model.The model is usually something<br />

that has been shown to work elsewhere but is sometimes a new idea that you have faith<br />

in.Will you adapt your existing business model to the <strong>Web</strong>, mimic an existing competitor,<br />

or aggressively create a pioneering service?<br />

Next<br />

In the next chapter, we look specifically at security for e-commerce, providing an<br />

overview of security terms, threats, <strong>and</strong> techniques.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!