Concurrency Control In Multi-Player Games Using Aerospike – @iamontheinet

  • Concurrency control is one of the main aspects of multi-player games where all the checks, conditional writes and game state updates must be made as fast as possible and with minimal client/server calls in order to keep the game fair and square.
  • This application uses the Aerospike Node.js Client to store and retrieve game data and AngularJS web framework to illustrate end-to-end application development in Aerospike DB.
  • In this application, concurrency control is achieved by putting conditional writes and game state updates on the server using User Defined Functions.
  • For every move (i.e. user selecting a square) all the client has to do is execute the UDF by passing in the game record key, current user’s username and the square he/she just clicked on.
  • The UDF then takes care of the rest — checking, setting, and updating the state of the game in a single-record transaction — where it always interacts with the most recent (game) record unlike other implementation where conditional writes and updates are coded in the client; where the client can potentially operate on outdated game record and wrongly overwrite true state of the game.

Concurrency control is one of the main aspects of multi-player games where all the checks, conditional writes and game state updates must be made as fast as possible and with minimal client/server calls in order to keep the game fair and square. This is especially critical in turn-based games where careless implementation (such as putting code that alters the game state in the client) can lead to concurrency related “race condition” from creeping in.
Continue reading “Concurrency Control In Multi-Player Games Using Aerospike – @iamontheinet”

javascript

  • Our application has several areas which we don’t believe fit the single-page model in that they are related from an application perspective, but not from a view one.
  • This may be a fairly obvious question, but we cannot seem to decipher if AngularJS is purely for single-page application or it can be used for multi-page applications like Express for instance.
  • We have reached out to a few people who are more qualified with AngularJS than us and posed the question regarding splitting up larger applications that share context, but may be too large working on a single page.
  • The consensus was that we could serve multiple static pages and create AngularJS applications that work with only those pages, effectively creating a collection of SPA and linking those applications together using standard linking.
  • We are still using the architecture outlined in the previous update, where we use express and self contain apps, so for example, we have a route in express that serves up our React chat app, we have another route that serves up the projects app and so on.

We are looking at options to build the front end of an application we are creating and are trying to evaluate a tool that will work for us and give us the best platform to move forward.
Continue reading “javascript”

Concurrency Control In Multi-Player Games Using Aerospike – @iamontheinet

  • Concurrency control is one of the main aspects of multi-player games where all the checks, conditional writes and game state updates must be made as fast as possible and with minimal client/server calls in order to keep the game fair and square.
  • This application uses the Aerospike Node.js Client to store and retrieve game data and AngularJS web framework to illustrate end-to-end application development in Aerospike DB.
  • In this application, concurrency control is achieved by putting conditional writes and game state updates on the server using User Defined Functions.
  • For every move (i.e. user selecting a square) all the client has to do is execute the UDF by passing in the game record key, current user’s username and the square he/she just clicked on.
  • The UDF then takes care of the rest — checking, setting, and updating the state of the game in a single-record transaction — where it always interacts with the most recent (game) record unlike other implementation where conditional writes and updates are coded in the client; where the client can potentially operate on outdated game record and wrongly overwrite true state of the game.

Concurrency control is one of the main aspects of multi-player games where all the checks, conditional writes and game state updates must be made as fast as possible and with minimal client/server calls in order to keep the game fair and square. This is especially critical in turn-based games where careless implementation (such as putting code that alters the game state in the client) can lead to concurrency related “race condition” from creeping in.
Continue reading “Concurrency Control In Multi-Player Games Using Aerospike – @iamontheinet”

AngularJS 2.0 From Beginning

#AngularJS 2.0 From Beginning - Route Part One - Day 13 by @debasiskolsaha cc @CsharpCorner

  • Now in this article, I will discuss about the route concept in Angular 2.0.
  • In this article, we will discuss about the route concept in Angular 2.0.
  • To use , create an array of route takes the Routes array as an argument and returns a configured router module.
  • Redirecting the Router to Another Route When your application starts, it navigates to the empty route by default.
  • The pathMatch property, which is required for redirects, tells the router how it should match the URL provided in order to redirect to the specified route.

In this article, we will discuss about the route concept in Angular 2.0.
Continue reading “AngularJS 2.0 From Beginning”

AngularJS 2.0 From The Beginning

#AngularJS 2.0 From The Beginning - #ngContent - Day 12 by @debasiskolsaha cc @CsharpCorner

  • In this article, we will discuss about the content template or ng-content in Angular 2.0.
  • This is now done in Angular 2.0 through modern web APIs, such as shadow DOM which is known as content projection.
  • Early alpha versions of Angular 2 adopted the element, however due to the nature of a bunch of Web Component helper elements being deprecated, it was changed to .
  • Angular provides three encapsulation strategies,

    To illustrate ng-content that, suppose we have a children component.

  • Then in the template, we can use directives, say, to specify the position of projected content to the ng-content with select=”area1″.

In this article, we will discuss about the content template concept in Angular 2.0.
Continue reading “AngularJS 2.0 From The Beginning”

Getting Started With Ionic 2

  • Ionic leverages commonly used web technologies to build out the app, specifically Angular with TypeScript, SCSS, and HTML.
  • Type the following:

    A quick breakdown of this command is to tell Ionic we are ing an application we call and that Ionic should be using version to (–v2).

  • In order for it to do this, Ionic will take any TypeScript files and SCSS files, and transpile/compile them out to something that the browser can digest.
  • The application won’t inherently know about our new Locations page so we need to fix this by updating a few things in the file.
  • In this blog, we created a mobile application using the Ionic 2 framework that can be run in the browser, emulator, or built-out to run on a device.

These days, everyone wants to have an “App” to represent them, their company, or just to perform some common task they might have in mind.
Continue reading “Getting Started With Ionic 2”

Develop an applicaiton using AngularJS framework.

  • To develop an application using AngularJS and PostgreSQL as the back-end.
  • I am looking for an excellent experienced programmer.
  • Excellent communication, availability, flexibility and following the given requirements are a must skills.
  • You must implement ALL requirements and the application should be implemented ASAP in a timely manner.

HTML5 & Java Projects for $163. To develop an application using AngularJS and PostgreSQL as the back-end. I am looking for an excellent experienced programmer. Excellent communication, availability, flexibility and following the giv…
Continue reading “Develop an applicaiton using AngularJS framework.”