What technology to use to develop a Webservices for Android

Asked

Viewed 462 times

-1

I’m starting in the Android world and identified that for the application I’m designing I will have to follow a Webservices architecture using a database on Cloud platform.

The database I’ve already defined will be Mysql. Already Webservices I’m in doubt whether I go from Java or . Net.

Looking at the performance and cost side, including considering the future Cloud platform I will have to hire (I’m looking at UOL and Kinghost), I see two possibilities:

  • Create Java Webservices to have everything in one Cloud over Linux
  • Create Webservices on . Net to use a Windows platform

What are the advantages and disadvantages of each platform in this context?

  • 1

    Marcio, welcome to Stackoverflow! I understand that this is the kind of question that comes up when we start developing something. However, it does not fit the scope of the site. Here the questions should be objective, about concrete programming problems. Your question will be answered based on opinion, which is not accepted here. I invite you to see how the site works on tour and what the type of question that fits.

  • 2

    Ramaral, I don’t understand the problem of opinion-based answers. If I wanted an objective answer to a specific case (technical problem) I would have asked objectively about the specific case, but this is not my need, because the intention was to know the opinion of the professionals who participate here before the experience they have in the development of applications of the type. In my opinion (I know it is forbidden to have an opinion here) is that this restriction only limits the exchange of experiences and knowledge, but okay, if it is site policy then I will respect.

  • +1 Marcio. I think there are cases and cases @ramaral. And in that case an answer based on opinion and experience is the most appropriate for Marcio’s question.

  • @Luiz The question is that, according to the rules, both the question and the answer should not have occurred.

  • Marcio, welcome to [en.so]! I edited your answer to prevent it from being too opinionated. This way, I believe it is possible to answer a little more objectively. If you are not happy, you can edit the question again. If you have other questions, I suggest you ask different questions, each one with a very specific goal in mind. Hug.

2 answers

1

TL;DR

The truth is that from the point of view of the client App, it makes no difference at all in which technology the Web Service is implemented. This is precisely the idea of Web Services to begin with.

Therefore, the factors that can lead to the decision of which platform or language to use are elsewhere.

Some are...

Two different environments?

Unless you’re already a developer. Proficient Net, if you already develop in Java for Android, using the same language on the server makes more sense.

Server cost

Unless it is a personal project financed from your pocket and without a significant return, the cost of hosting should not be a problem.

However, know that for Java the initial cost is higher, since a small instance of Java takes up a lot of memory. The advantage of Java is that memory is not proportional to the number of users.

In addition, there are services such as Openshift which allow limited use free of charge.

Other alternatives

On the other hand, if you want to keep a minimum cost or do not know well neither Java nor . Net and want a simpler environment, could even use PHP or Node.js to develop their Web Services.

Operating system

The operating system is also not important in the sense that both will support.

But in general, the linux environment is more flexible and lightweight. There are cloud distributions that work with little memory and little storage space.

The problem with Linux is that if you’re not used to this kind of environment and you don’t dominate the terminal, you can easily waste a lot of time punching a knife point until you can do simple things that in Windows, could resolve in a few minutes by clicking on some menus.

  • 1

    utluiz, thanks for the feedback. I will then move to a Linux/Java/Mysql/Tomcat environment on the Webservices/XML/Json server side, because I have greater proficiency in java/Linux since I have never programmed in .NET. When I need something for migration in production I will get a cloud plan there in Kinghost that at first sight will meet my needs and has good price. With the answers I had here more researched gave to close an architecture that will suit me and is scalable over time. Thanks again for the return.

  • +1 for saving the question before answering :)

-4

The Webservice is personal has to be something that meets your need more accurately, ie the two options are good (Linux or Windows). This is a personal matter: ease for you to develop, price, stability, hosting etc.

I also advise you to take a look at Webservice REST JSON, which is made for applications that will carry not very high data, is fast, easy to use and you will be able to develop in PHP running in both Linux or Windows structures.

A tip: If you are going to carry data with a lot of separate contents, use JSON instead of XML because XML tags make the receiving too large, thus spending more processing.

  • 3

    -1 Because by answering is encouraging questions that are outside the scope of Stackoverflow.

  • Putz, I didn’t know, I’m sorry, I just wanted to help, Poxa desnegativa.

  • 1

    You don’t have to apologize. I know you just wanted to help, but it’s our obligation to watch out for the rules of the site.

  • 3

    -1 the answer is completely based on opinion.

  • 1

    Yes @Diegofelipe, I should have noted that too.

  • 1

    Caraca you are good to negativar heim, Where is the consideration? rsrs, But it’s quiet. Maybe if they were less negative and more helpful to the community.

  • 1

    Do not feel targeted, what is taken into account is the content of the answer and not who responds.

  • 2

    Viniam the intention of -1 is to warn the author that the answer/question is not good, that he should improve it, is not to penalize you or any user. It is interesting that you have knowledge of the operation of the site and its rules, everything can be found on aid centre

  • Viniam, thank you for returning and sorry for the trouble I caused you by helping me. Evaluating his answer, I saw that another option is to use REST/Json that seems to be a more "economical" way of traffic data, I was only with Webservices in mind and his answer made me consider another alternative. I’m having some doubts but I just don’t want to ask since they will probably fit in the opinion, but finally, I will give a further study and detail the linux/mysql/webservices java/Rest/json architecture that will probably suit me. Thanks again for the return.

  • 1

    Viniam, three tips to avoid this kind of negative, even when it’s something that involves opinion. First, avoid simply saying "this is a personal matter," because even if it is, each decision involves positive and negative factors, advantages and disadvantages that are relatively objective, so it would be helpful if you talked about some of these aspects. Second, instead of simply saying you can use or do this or that, try to base your opinion on more technical terms, again focusing on the advantages and disadvantages. Third, format your answer better, have 3 ideas in one paragraph.

  • I had even negatived but changed my mind, I thought giving a more professional formatting in the text relieves a little the problem

  • 2

    ps: good to negative and positive too, those 300 points of yours didn’t come out of nowhere :P

  • 1

    A tip, remove the answer that the negatives are no longer counted in your reputation.

  • The +3 in my first comment obliges me to clarify that answering an "opinion-based" question in itself does not justify giving -1. What I wanted to point out is that responses of this kind, which give an opinion without justification, encourage others, making the post as if one forum if it were. I would never give -1 to the user response.

Show 9 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.