Currently we use SA12 for an inhouse client/server system (via ODBC/win32) and we're evaluating some html5 frameworks to add web/mobile to the system

We have very little experience in this field, but most frameworks rely on "RESTFul API" for database interaction. What I've gathered so far is that we could create webservices "manually" on the server side, but there is also the possibility of using OData.

As we start from scratch here, some advice with regard to the following is most welcome:

  • is OData likely to speed up the development proces?

  • will either concept (webservices/OData) give us a performance benefit (OData conceptually seems slower ...)

  • Do we loose flexibility when using OData?

  • will OData give us more security?

  • is SQLAnywhere "lagging behind" on the OData implementation (there is a version 4 apparently, and SQLAnywhere supports version 2) and if so does it matter?

  • is OData likely to stay for awhile?

  • are there other important things to consider?

Thanks in advance

asked 06 Nov '14, 04:15

Hendrik's gravatar image

Hendrik
46123
accept rate: 0%


I would like to share my opinion.

If you plan to develop the web site that will be used by your users, you should keep in mind that there is a chance that someone will use your web services to access the data (e.g. somebody would like to create a mobile application). If you develop own REST API (or REST web service), you have to create a documentation for it, or probably share it in your team. However, with OData everything is self-descriptive, because this is just another standard.

Any RESTful web service (not OData) gives you a flexibility to write whatever you want. E.g. this link should do the logoff: http://someServer/logoff With OData you have the possibility to present your data in the appropriate format (e.g. a table my_users will be displayed as UserSet, and everything you can is to do CRUD operations + a couple of interesting selects).

OData might be slower, if you do not utilize it properly (e.g. retrieve 1e100 objects instead of the first page only; or you parse XML output, instead of using JSON).

As I said above, OData is not very flexible comparing to any RESTful web service. This is because OData has a different area of usage. It is up to you, what you want to have. Do you want to work with data only and easily. There is link texta good article that I googled in 3 minutes. Maybe you find it interesting.

  • will OData/REST web service give us more security?

Everything is sent in the plain text. You can use HTTPS to protect the traffic from sniffers, plus if you develop the application it is responsible for certificate checks (e.g. if the trafiic will be sent through the proxy server). If you do not need web sites, Mobilink gives you a better security.

  • are there other important things to consider?

Write down all requirements that you have, and then decide what you need or ask us to help you with the decision:

  • Target platform - desktop/mobile

  • Application technology - website/native application/hybrid stuff

  • What is important Development Speed/Efforts or the ease of support

  • Security (analyze possible vulnerabilities)

permanent link

answered 07 Nov '14, 03:11

Vlad's gravatar image

Vlad
2.5k91127
accept rate: 16%

Being not familiar with webservices, I will let another answer some of these.

  • is OData likely to stay for a while

Yes, SAP has chosen OData as a technology we will use going forward. Many members of the OData technical committee are in fact SAP employees, including a member of the SQL Anywhere development team. SO from someone working in the trenches, to me it seems SAP is invested in OData. Remember I'm just a developer

  • is SQLAnywhere "lagging behind" on the OData implementation (there is a version 4 apparently, and SQLAnywhere supports version 2) and if so does it matter?

While there are some features in version 4 that make things easier, version 2 is fully functional. Many providers are still at version 2 and many plan to skip version 3 and not support it at all.

  • will either concept (webservices/OData) give us a performance benefit (OData conceptually seems slower ...)

ODBC will always be your fastest path. The question is will the network lag render the overhead negligible? The trade off is in better handling of connectivity issues, technology that fits with the other web paradigms, using a protocol that can go through firewalls and is more accepted by the guardians of security.

  • are there other important things to consider?

There is always UltraLite and MobiLink for truly reliable client-server in mobile not always connected landscape.

permanent link

answered 06 Nov '14, 09:11

PhilippeBertrand%20_SAP_'s gravatar image

PhilippeBert...
1.8k42139
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×24
×16

question asked: 06 Nov '14, 04:15

question was seen: 3,781 times

last updated: 07 Nov '14, 03:11