If it is possible to go the HTTP-route, you may also want to consider using 
WebSockets, as it uses bare TCP-protocol for transporting data, but with a 
HTTP-handshake. That way you can avoid the overhead that HTTP adds, and you 
could stream the data from you device to your server.



mandag 18. juli 2016 05.00.37 UTC+2 skrev EdgarAlejandro Vintimilla 
følgende:
>
> yes, I have developed several things but no big ones
>
> In my work are selling this products  http://www.sinocastel.com/product/ 
> , but the admin panel to see the data of the trackers is not good so we are 
> going to develop one. 
> these trackers send me the data by TCP and it need a static IP, app 
> engine does not provide me a static IP. 
>
> On Sunday, July 17, 2016 at 8:14:01 AM UTC-5, Caleb Doxsey wrote:
>>
>> Hi Edgar,
>>
>> Have you done much web development in the past? The easiest option may be 
>> google app engine. You can create a restful HTTP API pretty easily and it 
>> comes with a lot of functionality out of the box. You can find a 
>> getting-started tutorial here: 
>> https://cloud.google.com/appengine/docs/go/gettingstarted/creating-guestbook.
>>  
>> I also have a series of videos that walk through almost every aspect of 
>> building websites with app engine: 
>> http://www.golang-book.com/guides/bootcamp, though it's so much material 
>> that it may be difficult to find what you are looking for. App engine is 
>> also nice because they have a free tier available so it won't cost you 
>> anything to get started.
>>
>> HTTP has some advantages over TCP. It's a lot easier to debug, equally 
>> usable from a website or a mobile app and plays well with proxies and CDNs. 
>> The overhead isn't too bad either.
>>
>> For TCP you probably have to create a virtual machine and install your 
>> app as a service. The easiest way to do this would be to use the 
>> startup-data script that both google and amazon offer when you start an 
>> instance. I use this script: 
>> https://github.com/calebdoxsey/cloud-machine/blob/master/install.bash 
>> and I curl and eval it setting environment variables before hand:
>>
>>     #!/bin/bash
>>
>>     export CF_TOKEN=XXXX
>>
>>     curl 
>> https://raw.githubusercontent.com/calebdoxsey/cloud-machine/master/install.bash
>>  
>> | /bin/bash 
>>
>> The "proper" way to do this is using orchestration tools or containers, 
>> but either of those is going to require a tremendous amount of additional 
>> knowledge.
>>
>> Hope that helps,
>> - Caleb
>>
>> On Thursday, July 14, 2016 at 10:41:32 AM UTC-4, EdgarAlejandro 
>> Vintimilla wrote:
>>>
>>> Thanks, basically is a GPS that sends data to the server. It's for a fit 
>>> traker. 
>>>
>>> What is the best way to put into producción this server?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to