Workflow Man (John Shaw)

WF 4.0, BizTalk, WCF 4.0... and all things inbetween

  Home  |   Contact  |   Syndication    |   Login
  2 Posts | 0 Stories | 1 Comments | 0 Trackbacks

News

Tag Cloud

Twitter












Archives

Post Categories

Image Galleries

Monday, May 17, 2010 #

If you have been living under a rock for the past year, you wouldn't have heard about cloud computing. Cloud computing is a loose term that describes anything that is hosted in data centers and accessed via the internet. It is normally associated with developers who draw clouds in diagrams indicating where services or how systems communicate with each other. Cloud computing also incorporates such well-known trends as Web 2.0 and Software as a Service (SaaS) and more recently Infrastructure as a Service (IaaS) and Platform as a Service (PaaS). Its aim is to change the way we compute, moving from traditional desktop and on-premises servers to services and resources that are hosted in the cloud.

 

Benefits of Cloud Computing

 

There are clearly benefits in building applications using cloud computing, some of which are listed here:

 

Zero up- front investment:

 

Delivering a large-scale system costs a fortune in both time and money. Often IT departments are split into hardware/network and software services. The hardware team provisions servers and so forth under the requirements of the

software team. Often the hardware team has a different budget that requires approval. Although hardware and software management are two separate disciplines, sometimes what happens is developers are given the task to estimate CPU cycles, disk space, and so forth, which ends up in underutilized servers.

 

Usage-based costing:

 

You pay for what you use, no more, no less, because you never actually own the server. This is similar to car leasing, where in the long run you get

a new car every three years and maintenance is never a worry.

 

Potential for shrinking the processing time:

 

If processes are split over multiple machines, parallel processing is performed, which decreases processing time.

 

More office space:

 

Walk into most offices, and guaranteed you will find a medium- sized room dedicated to servers.

 

Efficient resource utilization:

 

The resource utilization is handed by a centralized cloud administrator who is in charge of deciding exactly the right amount of resources for a system. This takes the task away from local administrators, who have to regularly

monitor these servers.

 

Just-in-time infrastructure:

 

If your system is a success and needs to scale to meet demand, this can cause further time delays or a slow- performing service. Cloud computing

solves this because you can add more resources at any time.

 

Lower environmental impact:

 

If servers are centralized, potentially an environment initiative is more likely to succeed. As an example, if servers are placed in sunny or windy parts of the world, then why not use these resources to power those servers?

 

Lower costs:

 

Unfortunately, this is one point that administrators will not like. If you have people administrating your e‑mail server and network along with support staff doing other cloud-based tasks, this workforce can be reduced. This saves costs, though

it also reduces jobs.


Wednesday, October 28, 2009 #

Like many developers I have chosen to upgrade to Windows 2008 to test enterprise scenarios. I have a virtual environment that I want to test in isolation from my local machine. I'm currently trying to test some email functionality that will notify users in a windows workflow. In Windows 2003 this is really easy to do because you have the ability to setup a POP3 server to setup one or more email accounts to test this type of functionality.

 Unfortunately, I discovered two key missing features in Windows 2008:  

  • No Outlook Express to view my messages
  • No POP3 server.

After searching around the web and spending half a day of 'wasted time'. I came up with a solution that will prevent fellow developers from wasting a day like me. Essentially, we will use the out of the box SMTP server, supplied with Windows 2008 for outgoing mail ,and use the free visendo POP3 extender for inbound mail.  

Install SMTP Server  

  • Install SMTP role in windows 2008
  • Open SMTP in IIS 6.0 and add a new alias domain called 'test.com'
  • Run -> Services.msc, navigate to SMTP service and set to automatic start up
  • Reboot machine  

Install Visendo SMTP (pop3) Extender for Windows 2008  

This is a nice little program that will simulate a POP3 server on your machine. The main component is a windows service that will monitor the SMTP drop location and move sent files to a mailbox specific folder underneath the default mailroot folder. You can then pull these files from mail programs like Windows Mail by entering the credentials for that mailbox.

Install Visendo SMTP (pop3) Extender Update

<VISENDO>

<POP3>

<Outbound UseOutboundPop3="true" StoreFolder="C:\inetpub\mailroot\drop" ServerPort="110" ServerIP="192.168.10.3"/>

</POP3>

<accounts>

<mailbox datadir="C:\inetpub\mailroot\drop\me1_test_com" destination="me@test.com" password="Pass"/>

<mailbox datadir="C:\inetpub\mailroot\drop\me_test_com" destination="me1@test.com" password="Pass"/>

</accounts>

</VISENDO>  

  • Run -> Services.msc -> Start VisendoSMTPExtender service

If you have any errors see C:\ProgramData\ppedv\VisendoSMTPExtender\Logs.

Install Windows Mail 

Find out more information here.  

   

  • Enter the incoming and outgoing server to be the hostname of your machine, click Next and Finish

   

   

  • You should now have an account configured in Windows Live Mail as shown below

   

   

   

Test POP3

  • Open Windows Mail click on the account that you have just created.
  • Create a New Mail Message and address this to me@test.com, subject line, Hello World and attach a picture as shown below.

  • Click Send
  • Press F5 to send/receive.
  • If you navigate to C:\inetpub\mailroot\Drop you will see the new email message being moved into your new mail account folder
  • You should now receive your message  

   

Conclusion  

Obviously this can't be used in a production environment but in most cases this is suitable for developers needs. There are also other free mail server programs on the market that you could use such as hmailserver at http://www.hmailserver.com which are ok in development but I would still use Exchange in a production situation.  

The visendo program is pretty easy to use and if you want to add multiple accounts this can be done by adding extra mail accounts and passwords to the Visendo configuration file. In addition I have also tested this with the BizTalk 2009 POP3 adapter and there weren't any issues.