You are on page 1of 2

Web Based Distributed Computing

H Hemant Sriteja Bharathan Kaushik Barudwale Shubham Dinesh Shakti Rajput


15BCE1179 15BCE1117 15BCE1162 15BCE1066

School of Computing Sciences and Engineering, VIT Chennai, Tamilnadu, India 600127

potential of amassing immense resources thus


1. Abstract-One of the most promising transforming the Internet into a distributed
computer ideal for common classes of
ways to solve the hardest computational
distributed scientific applications such as
problems nowadays is distributed and parallel parametric studies. As a proof of concept, we
computing. demonstrate how a cluster of globally
The motivation is easy: if problem is too big distributed Internet browsers is used to
and hard, divide it into pieces and let several compute solving the hash mapping to extract
entities solve their piece; then, consolidate the password.
results into the potential answer. Most of 3. Generic structure of the future
personal computers and computing devices framework -The generic structure and
today are connected to internet and have web- corresponding requirements of the program
browser installed, which usually allows to run parts on the initial stage before development
code on host machine. Yet, this feature is not were the following:
widely used as a tool to divide and distribute Server
computation. Must provide the tools to divide the
The goal of this project is to create a JavaScript problem
framework that would allow anyone to set a Must serve data to clients
server and a webpage, connecting to which a Must be scalable
users web-browser will contribute to overall Client
computation. Must provide the tools to define solution
For example, the cracking of password by using to the problem and do the computation to
hash map table of the password. With help of generate a solution
(.js) (distributed evolutionary (genetic) Must work seamlessly, without distracting
algorithm spanned framework) one can the host system
distribute the work. Now, every user that visits Must be as autonomous as possible
the webpage contributes their CPU cycles to Server-client connection
generate and send potential solutions to the Must allow asynchronous data transfer
server. Must allow large amounts of data to be
2. Introduction transferred
The performance gain being achieved by
current JavaScript virtual machines raises the 4. Methodology
question whether Internet browsers can Web Worker interface
become the next scientific computing platform. Web worker that is responsible for most
Distributed computing requires suitable of the computation is stored in evolve.js file.
resources. These resources, to date, have been Since web worker is executed in separate
supercomputers, clusters, grids, clouds, and thread, it is completely separated from global
desktop computers. With 2 billion users online, scope and does not have access to DOM.
computing through Internet browsers has the
Messages are used to communicate with web 5. Data
worker.
As with client-server interactions, The hash code is broken in chunks and
messaging system is used to pass objects in distributed to web workers of different
JSON format. Once again, message Type filed of distributed system.
passing/receiving object tells what type of Hashing
object it is. If keys are small integers, we can use an array
Log. Web worker does not have access to to implement a symbol table, by interpreting
widely used in web browsers console.log () the key as an array index so that we can store
function allowing to output any data in the value associated with key i in array position
debug console (firebug in Firefox or i. In this section, we consider hashing, an
inspector in google chrome). This message extension of this simple method that handles
type is a replacement. more complicated types of keys. We reference
Error. This message type is used to describe key-value pairs using arrays by doing arithmetic
an error occurred while executing web operations to transform keys into array indices.
worker.

Server
The best way to bring JavaScript to To know more about hashing refer to this link.
server side is to use node.js. Node.js is an https://algs4.cs.princeton.edu/34hash/
event-driven I/O server-side JavaScript
environment based on V8. It is intended for 6. Algorithm
writing scalable network programs such as web
7. Conclusion
servers. The Google V8 JavaScript Engine is an
open source JavaScript engine developed by
Google and shipping with the Google Chrome
browser. References :

You might also like