Latest News

    • Web Services Architecture – When to Use SOAP vs REST

      SOAP (Simple Object Access Protocol) and REST (Representation State Transfer) are popular with developers working on system integration based projects. Software architects will design the application from various perspectives and also decides, based on various reasons, which approach to take to expose new API to third party applications. As a software architect, it is good practice to involve your development team lead during system architecture process.   This article, based on my experience, will discuss when to use SOAP or REST web services to expose your API to third party clients.   Web Services Demystified Web services are part of the Services Oriented Architecture. Web services are used as the model for process decomposition and assembly. I have been involved in discussion where there were some misconception between web services and web API.   The W3C defines a Web Service generally as:   A software system designed to support interoperable machine-to-machine interaction over a network.   Web API also known as Server-Side Web API is a programmatic interface to a defined request-response message system, typically expressed in JSON or XML, which is exposed via the web – most commonly by means of an HTTP-based web server. (extracted from Wikipedia)   Based on the above definition, one can insinuate when SOAP should be used instead of REST and vice-versa but it is not as simple as it looks. We can agree that Web Services are not the same as Web API. Accessing an image over the web is not calling a web service but retrieving a web resources using is Universal Resource Identifier. HTML has a well-defined standard approach to serving resources to clients and does not require the use of web service in order to fulfill their request.   Why Use REST over SOAP Developers are passionate people. Let's briefly analyze some of the reasons they mentioned when considering REST over SOAP:   REST is easier than SOAP I'm not sure what developers refer to when they argue that REST is easier than SOAP. Based on my experience, depending on the requirement, developing REST services can quickly become very complex just as any other SOA projects. What is your service abstracting from the client? What is the level of security required? Is your service a long running asynchronous process? And many other requirements will increase the level of complexity. Testability: apparently it easier to test RESTFul web services than their SOAP counter parts. This is only partially true; for simple REST services, developers only have to point their browser to the service endpoints and a result would be returned in the response. But what happens once you need to add the HTTP headers and passing of tokens, parameters validation… This is still testable but chances are you will require a plugin for your browser in order to test those features. If a plugin is required then the ease of testing is exactly the same as using SOAPUI for testing SOAP based services.   RESTFul Web Services serves JSON that is faster to parse than XML This so called "benefit" is related to consuming web services in a browser. RESTFul web services can also serve XML and any MIME type that you desire. This article is not focused on discussing JSON vs XML; and I wouldn't write any separate article on the topic. JSON relates to JavaScript and as JS is very closed to the web, as in providing interaction on the web with HTML and CSS, most developers automatically assumes that it also linked to interacting with RESTFul web services. If you didn't know before, I'm sure that you can guess that RESTFul web services are language agnostic. Regarding the speed in processing the XML markup as opposed to JSON, a performance test conducted by David Lead, Lead Engineer at MarkLogic Inc, find out to be a myth.   REST is built for the Web Well this is true according to Roy Fielding dissertation; after all he is credited with the creation of REST style architecture. REST, unlike SOAP, uses the underlying technology for transport and communication between clients and servers. The architecture style is optimized for the modern web architecture. The web has outgrown is initial requirements and this can be seen through HTML5 and web sockets standardization. The web has become a platform on its own right, maybe WebOS. Some applications will require server-side state saving such as financial applications to e-commerce.   Caching When using REST over HTTP, it will utilize the features available in HTTP such as caching, security in terms of TLS and authentication. Architects know that dynamic resources should not be cached. Let's discuss this with an example; we have a RESTFul web service to serve us some stock quotes when provided with a stock ticker. Stock quotes changes per milliseconds, if we make a request for BARC (Barclays Bank), there is a chance that the quote that we have receive a minute ago would be different in two minutes. This shows that we cannot always use the caching features implemented in the protocol. HTTP Caching be useful in client requests of static content but if the caching feature of HTTP is not enough for your requirements, then you should also evaluate SOAP as you will be building your own cache either way not relying on the protocol.   HTTP Verb Binding HTTP verb binding is supposedly a feature worth discussing when comparing REST vs SOAP. Much of public facing API referred to as RESTFul are more REST-like and do not implement all HTTP verb in the manner they are supposed to. For example; when creating new resources, most developers use POST instead of PUT. Even deleting resources are sent through POST request instead of DELETE.   SOAP also defines a binding to the HTTP protocol. When binding to HTTP, all SOAP requests are sent through POST request.   Security Security is never mentioned when discussing the benefits of REST over SOAP. Two simples security is provided on the HTTP protocol layer such as basic authentication and communication encryption through TLS. SOAP security is well standardized through WS-SECURITY. HTTP is not secured, as seen in the news all the time, therefore web services relying on the protocol needs to implement their own rigorous security. Security goes beyond simple authentication and confidentiality, and also includes authorization and integrity. When it comes to ease of implementation, I believe that SOAP is that at the forefront.   Conclusion This was meant to be a short blog post but it seems we got to passionate about the subject.   I accept that there are many other factors to consider when choosing SOAP vs REST but I will over simplify it here. For machine-to-machine communications such as business processing with BPEL, transaction security and integrity, I suggest using SOAP. SOAP binding to HTTP is possible and XML parsing is not noticeably slower than JSON on the browser. For building public facing API, REST is not the undisputed champion. Consider the actual application requirements and evaluate the benefits. People would say that REST protocol agnostic and work on anything that has URI is beside the point. According to its creator, REST was conceived for the evolution of the web. Most so-called RESTFul web services available on the internet are more truly REST-like as they do not follow the principle of the architectural style. One good thing about working with REST is that application do not need a service contract a la SOAP (WSDL). WADL was never standardized and I do not believe that developers would implement it. I remember looking for Twitter WADL to integrate it.   I will leave you to make your own conclusion. There is so much I can write in a blog post. Feel free to leave any comments to keep the discussion going.

Tuesday, 22 May 2012

PaaS Cloud - The Rise of The Developer Entrepreneur


In bad times such as recession, there is the inevitable fact that some people will be laid off by their employer. In these circumstances, when software developer are made redundant they usually set-up shop. The majority goes into providing software development services for small company or friends. They set-up websites to promote their services and few focuses on building their own product.

In London, services based company took a massive hit during the downturn and it is still felt now; well the UK and now in a double-dip recession. So what is my point here? It is much harder to sell services and even harder to export services than products. When providing services, your market has geographical constraint; just think what would take for your to sell your services to a potential client 100 miles from your local?

It used to be hard to build products in the past due to high cost of hardware; to build a java-based product you had to find a suitable host and then pay for a dedicated server or VPS. As you are already tightening your belt, it is likely that you do not want to spend £60 + VAT a month on services to host your product and all the headache of troubleshooting it in case of problem.

Enter the PaaS, Platform as a Service. For this posting I am going to look at PaaS from a Java perspective but it should be applicable to any other programming language. 

The competition in the PaaS market is fierce there is no single winner yet. Amazon is the leader for IaaS but not much to be deployed on Beanstalk as yet. If you look around the market, you can see that major technology vendor are jumping on the bandwagon:

Some of those PaaS services are free such as OpenShift and CloudBees. OpenShift runs on JBossAS7 and if you are using Eclipse for it becomes a breeze to develop and deploy, but the only downside is that it's still in beta stage.

Utilising the current ecosystem of PaaS, you can go from:

inception (idea) -> development -> product

for almost nothing. The prototyping is now free for example you can use Heroku to build Facebook apps  making all the Facebook API directly available to your app and hosted for free (until you out grow your free account of course). I will suggest that developers familiarises themselves with Lean Startup and Lean Software Development

If you are a developer and out-of work, you have no excuse of no building your cloud apps. Even if you do not want to start a business and you can do it as a learning practice and use that to your advantage next time you are interviewing for a new role.

With PaaS Cloud, every developer is a potential entrepreneur and the barriers to entry are almost non-existent. If you are looking for a job, it is no longer acceptable just to have some sample code on GitHub but you should also have a sample project hosted on a free cloud provider to showcase.

  This is blog was written from Cloudstock 2012



  • Blogger Comments
  • Facebook Comments

66 comments :

  1. Please keep on posting such quality articles as this is a rare thing to find these days. I am always searching online for articles that can help me. Looking forward to another great blog. Good luck to the author! all the best!
    http://scarprin.com/

    ReplyDelete
  2. Thanks for the post. I had been looking for something related and found your web site in the process.. I will definitely be back for more.

    ReplyDelete
  3. Youre so cool! I dont think Ive read anything like this before. So good to find somebody with some original thoughts on this subject. Thanks for starting this up. This blog is something that is needed on the web someone with a little originality. Good job for bringing something new to the internet!
    Car Buying Tips

    ReplyDelete
  4. I'm the same way I do my best to remain neutral. It's hard if you communicate with the person the other person dislikes then you fall out of favor with them! I simple can't dislike a person just because someone else does I just can't.
    online tutoring service

    ReplyDelete
  5. Thanks for this interesting and informative post...
    Platform as a Service

    ReplyDelete
  6. Hey Armel - just got you on LinkedIn. Interesting comments here. However, can I bring your attention to CA's Applogic, originally from 3Tera. Over 6 years in production environments. It's an extremely robust and versatile PaaS offering, but not spoon fed for that reason. You should check out the SugarCRM demo here youtube.com/connetu - or even better, get a full intro over the phone/web from us!

    @ConnetU

    ReplyDelete
  7. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading what you all have to say...
    surveillance

    ReplyDelete
  8. This is an encouraging post to encourage the people to to learn web developing. Some approaches are in this blog how we can learn this fairly and quickly. So I appreciate this and want to thank to the admin...
    Drupal

    ReplyDelete
  9. thanks for sharing kind information who is very helpful
    شيخة اماراتية

    ReplyDelete
  10. Binary options forum information
    The best and important strategy to use in order to succeed in binary options forum is to get all the information on binary options trading.
    forex trading

    ReplyDelete
  11. You can use strategies & signals and work with nadex binary options, but i can tell you that before you can use any strategy you have to understand yourself first, how is your mind work, without it you will continue the up and down profit/loss, feeling pressure/calm.
    I also worte an Entire post about the winners mental state.http://www.automatedbinaryoptions.co/?p=180

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. The person who will better start than others with forex and after that nadex binary options learn and only then trade binary options, but i can tell you that before you can use any strategy you have to understand yourself first, how is your mind work, without it you will continue the up and down profit/loss, feeling pressure/calm.More information please visit our web Our web site is http://www.automatedbinaryoptions.co/?p=180

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. This blog resolved all my queries I had in my mind. Really helpful and supportive subject matter written in all the points. Hard to find such kind of blogs as descriptive and accountable to your doubts.
    Hosted 3CX

    ReplyDelete
  16. Hello,am happy to share my experience so far in trading binary options
    have been losing and finding it difficult to make profit in trading for long until i meet [Mrs Patricia Morgan] who help me and gave me the right strategy and winning signals to trade and also i was able to get all my lost fund back from greedy brokers through Him. now i can make a profit of 12,000 USD weekly through his amazing masterclass strategy feel free to email him on patriciamorgan984@gmail.com, you can also reach her out on whats-app +1631 633 3388.





    Hello,am happy to share my experience so far in trading binary options
    have been losing and finding it difficult to make profit in trading for long until i meet [Mrs Patricia Morgan] who help me and gave me the right strategy and winning signals to trade and also i was able to get all my lost fund back from greedy brokers through Him. now i can make a profit of 12,000 USD weekly through his amazing masterclass strategy feel free to email him on patriciamorgan984@gmail.com, you can also reach her out on whats-app +1631 633 3388.

    ReplyDelete
  17. This blog is really helpful regarding all educational knowledge I earned. It covered a great area of subject which can assist a lot of needy people. Everything mentioned here is clear and very useful.cursus startende ondernemer

    ReplyDelete


  18. I got my already programmed and blanked ATM card to withdraw the maximum of $1,000 daily for a maximum of 20 days. I am so happy about this because i got mine last week and I have used it to get $20,000. Mike Fisher Hackers is giving out the card just to help the poor and needy though it is illegal but it is something nice and he is not like other scam pretending to have the blank ATM cards. And no one gets caught when using the card. get yours from Mike Fisher Hackers today! *email: blankatm002@gmail.com you can also call or whatsapp us Contact us today for more enlightenment +1(301) 329-5298

    ReplyDelete
  19. All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks salesforce

    ReplyDelete
  20. Hello everyone, Are you into trading or just wish to give it a try, please becareful on the platform you choose to invest on and the manager you choose to manage your account because that’s where failure starts from be wise. After reading so much comment i had to give trading tips a try, I have to come to the conclusion that binary options pays massively but the masses has refused to show us the right way to earn That’s why I have to give trading tips the accolades because they have been so helpful to traders . For a free masterclass strategy kindly contact (paytondyian699@gmail.com) for a free masterclass strategy. He'll give you a free tutors on how you can earn and recover your losses in trading for free..

    ReplyDelete
  21. Phoenix Residences (Former Phoenix Heights) by OKP Holdings Limited. Hotline 61009266. Get Discounts, Direct Developer Price, Brochure, Floor Plan, Price List & More. Phoenix Residences

    ReplyDelete
  22. I will always advice, that when you want to trade, you should seek the assistance of a well trained personnel. I've been trading with Robert Seaman and it would be selfish of me, if i don't recommend them. With their well guarded signals and forever active strategies i have been able to make over 11,200usd weekly
    Email: Robertseaman939@gmail.com  or  Fb.com/investandmakemoney1

    ReplyDelete
  23. brilliant task here upon _______ I proper to apply a variety of weblog posts, however I never heard a topic later on this. i love this subject matter you made approximately the blogger's pail listing. Very creative. Larby Amirouche

    ReplyDelete
  24. This is really likewise an incredibly beneficial placing most of us severely encountered shopping as a result of. It truly is faraway from each and every day we have now possibility to think about something. Fateh Soft Company

    ReplyDelete
  25. This is often at the same time a good present that many of us seriously enjoyed browsing. It's not at all on a daily basis which i provide the likeliness to check something. Smart contract Development solution Pune

    ReplyDelete
  26. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
    Advanced MLM Software Jaipur

    ReplyDelete
  27. I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article.
    Advanced MLM Software Jaipur

    ReplyDelete
  28. I conceive you have noted some very interesting points, regards for the post.
    สมัครW88

    ReplyDelete
  29. this artical is very useful.this is nice one and gives indepth infomation...Smart contract development company mirzapur

    ReplyDelete
  30. Great Post…This Article is very unique. Thanks for sharing and very informative!!!MLM Software Development Mumbai

    ReplyDelete
  31. Coffee is the starter of the day for more than half of the people. Many people buy a cup of coffee first from any coffee shop and then start their day at work. It costs them much if they calculate it. But now, there is an easy way to make coffee at home by buying the best single serve coffee maker from market by checking the list of best coffee makers.

    ReplyDelete
  32. Great job for publishing such a beneficial blog.sexologist Doctors

    ReplyDelete
  33. I precisely got what you ambition, thank you for posting. And, i am too much satisfied to treat as sentient component this internet site upon the arena of Google. يلا لايف yalla live

    ReplyDelete
  34. this post is so good.I am read your article.thanks for sharing..Best Sexologist in Prayagraj

    ReplyDelete
  35. I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. digital experts

    ReplyDelete
  36. This post is really nice thanks for it keep posting.Sexologist in Allahabad

    ReplyDelete
  37. Some truly nice and useful info on this internet site, as well I believe the style and design holds fantastic features.
    Public Blockchains

    ReplyDelete
  38. This type of is apparently absolutely outstanding. These kinds of tiny fact is made making use of wide variety regarding certification know-how. My partner and i favour the theory much.
    Digital Assets

    ReplyDelete
  39. Thanks for sharing such information with us very informative article.
    ICO Marketing Guide

    ReplyDelete
  40. This is really interesting, You are a very skilled blogger. I've joined your rss feed and look forward to seeking more of your fantastic post. Also, I've shared your site in my social networks!
    Internet Of Things Use Case

    ReplyDelete
  41. This post is really nice thanks for it keep posting.sexologist Doctors

    ReplyDelete
  42. Thanks for sharing such information with us very informative article.
    ICO Marketing Company

    ReplyDelete
  43. I am not sure where you’re getting your info, but good
    topic. I need to spend some time learning
    much more or understanding more. Thanks for the magnificent information I was looking for this information for
    my mission.
    Digital Security System

    ReplyDelete
  44. Some truly nice and useful info on this internet site, as well I believe the style and desiholdlds fantastic features.
    Digital Assets

    ReplyDelete
  45. this post is so good.I am read your article. thanks for sharing.. top 10 sexologist doctors in allahabad

    ReplyDelete

  46. Very informative post there is a lot of information here...!
    Pancakeswap Clone

    ReplyDelete
  47. i really try these steps its very helpful to me , thanks for this amazing blog .sexologist Doctors

    ReplyDelete
  48. Hire Angular JS Developers from well-famous Software, web, and app development companies, and save your hiring process based on different hiring models. Agnito Technologies is a leading software, web , and mobile app development company that offers to hire dedicated angular developers remotely for full-time, part-time, and an hourly basis as per your project requirements. If you are looking to get customized web apps to improve your web design architecture by using Angular js technologies then choose our expert team of Angularjs developers at a very low price.

    Hire Angular App Developers

    ReplyDelete
  49. Excellent post. I certainly appreciate this website. Keep writing !!!!!!!!! top 10 sexologist doctors in Allahabad ayurvedic clinic

    ReplyDelete
  50. Excellent blog with useful concept. Really I feel very happy to see this informative blog, Thanks for sharing such a nice blog. top Best Sexologist Clinic in Allahabad Arth ayurvedic clinic

    ReplyDelete

Item Reviewed: PaaS Cloud - The Rise of The Developer Entrepreneur Description: Rating: 5 Reviewed By: Unknown