Jump to content
  • Advertisement
Sign in to follow this  
ate50eggs

Working on my first game, advice needed with Web Service

This topic is 2082 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So I am working on my first game and would like some advice as this is new to me. The game will be a CCG and will have the following features

 

1) Matchmaking based on player ranking

2) Tournaments

3) In app purchases

4) Trading

5) Deck building

 

The game will start off on iOS, but would like the flexibility to handle other platforms as well (Android, Web, etc), so Game Center is out. I have some experience with .net, so could probably roll my own service to handle some of these features but was wondering it anyone had any suggestions on how to proceed? 

Share this post


Link to post
Share on other sites
Advertisement

Firstly, decide if you want to use REST or SOAP for your Web Service requests and responses. The first one is simpler and lightweight, the second one is a bit more complex as it involves RPC process via sending commands in XML format over HTTP. If you are just starting, I would recommend REST.

 

Secondly, think about your server architecture. For example you may want to have a single "gate" server and the rest of the servers to which player will actually make calls. It is needed for decreasing latency and single-server load.

 

C# and .NET are capable of providing mechanisms for doing all of that. If you have the knowledge of .NET, it is enough.

Share this post


Link to post
Share on other sites

Firstly, decide if you want to use REST or SOAP for your Web Service requests and responses. The first one is simpler and lightweight, the second one is a bit more complex as it involves RPC process via sending commands in XML format over HTTP. If you are just starting, I would recommend REST.

 

Secondly, think about your server architecture. For example you may want to have a single "gate" server and the rest of the servers to which player will actually make calls. It is needed for decreasing latency and single-server load.

 

C# and .NET are capable of providing mechanisms for doing all of that. If you have the knowledge of .NET, it is enough.

 

I would definitely go with a REST based solution and if I were to write my own C# service, there is a cool framework called ServiceStack that makes rest based services easy. I am wondering if I should use a service like Parse as they offer a lot of cool features that I would otherwise have to write myself. The only crappy part is that their custom code has to be written in JavaScript.

Share this post


Link to post
Share on other sites

There are many services that offer application hosting for custom applications. Examples include Heroku, and Google App Engine.

 

The main thing that is hard with these services for games is that the "matchmaking" part typically needs to be integrated with the "game servers" part, which often makes it a lot harder, as the application servers typically are request/response, HTTP based, rather than permanent-connection, state based.

 

Btw: I would recommend against RPC for anything that goes across the public internet (this includes XMLRPC and SOAP and others,) and typically recommend against it for anything internal as well. Trying to pretend a remote endpoint is local (which is the intent of RPC) just never works out right. Much better to explicitly design for remote services, make the amount of data transferred per request be large, and make the number of requests small.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!