Android Servers

Asked 2 years ago, Updated 2 years ago, 56 views

I am currently planning to make an Android-based SNS.

The server is using ec2 on Amazon Web Services.

Now I'm wondering what language to use to configure the sns server on the server, so I'm asking you a question.

Currently, for a simple test, I only set up to scratch the db using php.

I don't know any server programming, so I don't know if it's right to build a server using php.

If you have a language to study for server programming, please recommend it.

android php server

2022-09-22 10:19

2 Answers

You can do it in php. Facebook also uses php. There are many computer languages that can develop servers. In Korea, the current java + spring framework is the mainstream when developing it as an SI project. You can use node.js to develop javascript from the back end to the front end, or you can use python or ruby. I know that you use Python or ruby a lot in startup. But language learning isn't the only thing you need to build a server.


2022-09-22 10:19

You have to think about many things, but if you think about it because it's limited to language/implementation

You must first determine the protocol.

Are you going to use the http that many people use? The advantage is the ease of deployment, but it is slow.

You said sns, but it can be disadvantageous for handling large amounts of traffic.

In terms of performance, it would be most advantageous to receive packets in raw tcp. There are several asynchronous socket frameworks. There are easy-to-use alternatives, such as Python Twisted, Java Netty, and boost dot net on c++ and super socket.

Even http has an advantage in throughput with nginx for asynchronous communication.

Nowadays, size and easy-to-handle json are much more used than xml.

In other words, if http, when you call url on Android, you will receive json from httpd (web server).
And so, we're going to use the json that we received from Android, and we're going to use it as an unmarshaling.


2022-09-22 10:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.