Print This Article Post Comment Add To Favorites Email to Friends Ezine Ready

Open Source Code Behind Polomercantil

By: Roberto Sedycias Home | Computers-and-Technology | Software


As we started the project of the electronic auction www.polomercantil.com.br, we knew that the proprietary software costs would be too high for our financial resources. Our only option then was to make use of Open Source Code softwares.

However, within the Open Source Code there are lots of softwares to choose from, and it's up to the system analyst/programmer to pick the ones that best suit the project goals.

In our case, we picked Linux as our operating system. However we faced a big question: Which Linux distribution ? There are dozens of linux distributions, each one with specific advantages, sometimes with or without paid services.

We chose linux Slackware because we thought that it would suit better our needs, in terms of stability and reliability. Slackware is a conservative distribution, meaning that it only offers in its distribution package kernel versions and third party libraries, once it's been proved to be stable and reliable. As a result, Slackware is one the most stable Linux operating system on the market. If the user wishes the most recent Linux kernel and libraries, we recommend to look for a different distribution.

Another reason for us picking Slackware, was because of its text interface, which at the beginning may become a bit difficult, in the long run however it offers a better understanding of the Linux environment. This way most of Slackware configurations are done thru text scripts.

Once it was set the operating system, we picked Apache as our web server. Apache is one of the most popular web server in the internet. For server programming language, we chose PHP. Also, a very popular programming language. Our experience with Apache/PHP proves that this setup is very reliable, working extremely well in our production environment. For workstation programming language, we chose javascript, which besides of having a simple syntax, it offers lots of resources.

Apache web server is really a complete web server. Also, it can become very complex with many configuration setups.

For our database, we picked Postgresql. This database has been made available to the public for more than 15 years, and besides of being well debugged, it offers so many resources that it has become one of the best database options from Open Source Code softwares. Extremely reliable, Postgresql has reported cases where there have been databases in production with over 4 terabytes. Besides all of that, Postresql is not the most popular Open Source Code database. A matter of marketing ? Probably.

As for the programming language PHP, we had to use an object oriented application structure. There are many PHP application structures being offered with Open Source Code license. Object oriented application is very important, because it makes programming very easy and scalable up to the point where the system may grow without many problems. Also, it helps to keep PHP code separated from HTML, with the help of some specific libraries, such as Smarty. We make use of Smarty library and we believe that it is a very important resource, which can even make web pages faster thru the use of its cache functions.

Also a very important set of libraries worth mentioning for PHP systems, is the PEAR libraries. In PEAR web site, among the many libraries being offered, there are the database interface DB and the MAIL_QUEUE, which sends emails thru the use of database.

As we came to the end of the project www.polomercantil.com.br, we had to use some sort of real time database replication. For that we chose the DRBD and Heartbeat libraries. The use of database replication is very important and should not be postponed. Just after 3 months our system got into production, our server hard disk became bad. Thru the use of DRBD/Heartbeat we were able to put the system back into production within seconds, without loosing any data. DRBD/Heartbeat replication is done thru the use of a lan network between the server and slave nodes.

Our project also makes use of ImageMagick (enlarge and reduce images), Iptables (firewall), Tsearch2(text search in portgresql) and Mon (linux monitoring tasks).

Also a very important library worth mentioning is the pseudo APC compiler for PHP. Speed is always a critical factor for internet sites.

www.polomercantil.com.br is already in production and based upon our experience we can say that the Open Source Code softwares we picked, proved to be extremely reliable and stable. Open Source Code softwares can certainly be an excellent option for developing web sites.

Roberto Sedycias
IT Consultant for PoloMercantil

This text is under GNU FDL license and can be distributed without any previous authorization from the author.



Article Source: http://www.eArticlesOnline.com

About the Author:
This article can also be accessed in portuguese language from the News Articles section of the page PoloMercantil.


Roberto Sedycias is the chief software engineer at PoloMercantil.com. If you would like to see an effective use of Open Source Code softwares, please visit www.polomercantil.com.br.

Tags: , , , , , ,

Please Rate this Article

 

Not yet Rated

Click the XML Icon Above to Receive Software Articles Via RSS!

Recent Related Articles From Software

  • Drop Ship Magazine Partners With Wholesale Source Magazine
    By: Team Phincnews | Jan 13th 2009
    Recently launched, Drop Ship Magazine- Your Online Magazine for Dropshippers, has teamed up with Wholesale Source Magazine- Your Source for Distributors & Retailers of Variety Read

  • How To Tell The Difference Between Fiber Optic Transmitters And Light Sources

    :: What are fiber optic transmitters?

    Optical transmitters generate the light signals carried by a fiber optic communication system. a transmitter includes a light source but also includes signal generation circuit and components such as an electro-optic modulator.

    The transmitter contains elec ...
    Read

  • How To Choose A Programming Language For Web Application
    By: eGrove | May 4th 2010
    Web Application is an application that is accessed over the Internet and hosted in a browser-controlled environment. Read

  • Php Definition And Basic Php Programming Language
    By: John Machlen | Sep 21st 2009
    "PHP: Hypertext Preprocessor" is actually a backronym. It originally meant "Personal Home Page.†It is a recursive acronym for PHP: Hypertext Preprocessor which is re-designated.

    Read

  • Why To Use Captcha Code Or Image Verification Code On Your Website?
    By: cishemant Mahajan | Apr 16th 2011
    CAPTCHA stands for Completely Automated Public Turing Test to Tell Computers and Humans Apart'.Captcha Image verification,Captcha Image,Image Verification Code these are the names which represent Captcha code. And it is the code which keeps machines and humans apart. You must have seen captcha image verification somewhere ... Read

  • Leading Online Offers Website Offers A Host Of Heart Internet Voucher Code Deals
    By: admindgs | Nov 20th 2009
    When purchasing any goods or service, it always pays to strike the best deal and hence save money. However, Read

  • Introduction Of Java As A Programming Language
    By: Aditya patel | Oct 14th 2008
    Java is popular for web developers because of its unwilling security. Java has its own interpreter and compiler and its unique runtime environment too. Java has significant advantages compared to other languages. Java is easy to use and therefore easy to write. Moreover, it is easier to learn when compared to other programm ... Read

  • Pet Lovers Or Entirely Pets Coupons
    By: BP shenney | Nov 13th 2009
    Clipping coupons from magazines or newspapers, and using them for savings have been a smart practice of shoppers for many past years. The practice of using coupons when buying groceries, clothing

    Read

  • Online Shopping - Entirely Pets Coupons
    By: Donert Doli | Nov 26th 2009
    Online shopping! is in a flourishing period as more and more retail giants take their business to online commerce what they call as e-retailers in lieu of traditional brick and mortar stores. As per a study there are some about 65 mn people searching on the net hunting for the best deals they want to grab. Read

  • Save Thousands Using These Internet Coupons
    By: Kelley Jone | Dec 11th 2009
    Internet coupons are fantabulous ways to purchase any item at discount prices resulting in saving handful of money. You can find internet coupons to buy items from groceries to home appliances which can be inexpensive to fit your monthly budget. Read


Copyright © 2005-2011 eArticlesOnline, LLC - All Rights Reserved
Terms of Service | Privacy Policy