Start Projects Blog Chat

RaspberryPi Webserver

Category: hardware

2017-8-19 11:45:34 (modified 2017-9-1 12:37:16)

Philipp

A simple & fast webserver at low costs.

The bad...

If you are planning to host a webserver on a RaspberryPi there are a few things to consider:

  • The RaspberryPi's ethernet interface is rated to 100Mbit/s and uses the same bus as the USB-Ports, so it will be even slower when using a USB-Storage device
  • Your internet connection ist definitely slower and less stable than a connection in a datacenter
  • Not all internet service providers allow hosting public web services through a private connection
  • In most cases your public IP will change from time to time due to reconnects, so you would need to use dynamic DNS and accept down-times
  • Your connection could break down completely if somebody attacks your web service

The good...

Besides the issues mentioned above a RaspberryPi is an ideal platform for testing, developing or even hosting small services in a private network. Here are some real advantages:

  • The RaspberryPi 3 for example consumes only around 3W of power (~26kWh per year)
  • The CPU with its 4 cores has enough power for almost any kind of small web services or storage applications
  • The 1GB of memory is large enough to run multiple services or tasks in parallel
  • The SD-Card reader uses a separate bus and can deliver data quiet fast (with a proper class 10+ card)
  • The GPIO-Pins and their supported protocols allow you to connect almost every kind of sensor or actor for smart home or experimental applications

Project Picture