{"id":13515335,"url":"https://github.com/Inevio/vertigo","last_synced_at":"2025-03-31T04:36:56.584Z","repository":{"id":57391858,"uuid":"43633141","full_name":"Inevio/vertigo","owner":"Inevio","description":"Blazing fast communication between Node.js processes","archived":false,"fork":false,"pushed_at":"2017-12-15T04:05:23.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T21:40:55.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inevio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-04T10:46:54.000Z","updated_at":"2017-10-16T22:03:09.000Z","dependencies_parsed_at":"2022-09-01T14:21:20.600Z","dependency_job_id":null,"html_url":"https://github.com/Inevio/vertigo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inevio%2Fvertigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inevio%2Fvertigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inevio%2Fvertigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inevio%2Fvertigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inevio","download_url":"https://codeload.github.com/Inevio/vertigo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418657,"owners_count":20773934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:01:09.721Z","updated_at":"2025-03-31T04:36:53.300Z","avatar_url":"https://github.com/Inevio.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n![Vertigo](https://cloud.githubusercontent.com/assets/1794673/10267561/1b0eef2e-6a99-11e5-9770-71e13744166c.png)\n\nBlazing fast communication between Node.js processes\n\n## How to install Vertigo\nYou can install Vertigo using Node Package Manager (npm):\n```\nnpm install vertigo\n```\n\n## Features\n* Supports Request/Reply communication.\n* Supports Send without Reply communication.\n* Supports multiple server using round robin.\n* Fault tolerant: clients will reconnect to servers even if server goes down and comes back later.\n* Extremely fast (disables TCP Nagle's algorithm).\n* Zero dependencies on other libraries.\n* Block non-desired IPs.\n\n## Examples\n### Request/Reply: Server with one client\n#### Server\n```js\n// Modules\n  var vertigo = require('vertigo');\n\n// Create server\n  var server = vertigo.createServer( 8000 );\n\n// Listen petitions\n  server.on( 'hello', function( name, callback ){\n    callback( null, 'Hi ' + name + ', I am the server' );\n  });\n\n```\n#### Client\n```js\n// Modules\n  var vertigo = require('vertigo');\n\n// Create client\n  var client = vertigo.createClient( 8000 );\n\n// Make a petition\n  client.request( 'hello', 'John', function( error, response ){\n    console.log( 'Server says', response );\n  });\n```\n\n### Request/Reply: 2 server with one client (Round robin)\n#### Server 1\n```js\n// Modules\n  var vertigo = require('vertigo');\n\n// Create server\n  var server = vertigo.createServer( 8000 );\n\n// Listen petitions\n  server.on( 'hello', function( name, callback ){\n    callback( null, 'Hi ' + name + ', I am the server 1' );\n  });\n\n```\n#### Server 2\n```js\n// Modules\n  var vertigo = require('vertigo');\n\n// Create server\n  var server = vertigo.createServer( 8001 );\n\n// Listen petitions\n  server.on( 'hello', function( name, callback ){\n    callback( null, 'Hi ' + name + ', I am the server 2' );\n  });\n\n```\n#### Client\n```js\n// Modules\n  var vertigo = require('vertigo');\n\n// Create client\n  var client = vertigo.createClient( 8000, 8001 );\n\n// Make a petition\n  client.request( 'hello', 'John', function( error, response ){\n    console.log( 'Server says', response );\n  });\n```\n\n### Send: Server with one client\n#### Server\n```js\n// Modules\n  var vertigo = require('vertigo');\n\n// Create server\n  var server = vertigo.createServer( 8000 );\n\n// Listen petitions\n  server.on( 'hello', function( name ){\n    console.log( 'I received a message from ' + name );\n  });\n\n```\n#### Client\n```js\n// Modules\n  var vertigo = require('vertigo');\n\n// Create client\n  var client = vertigo.createClient( 8000 );\n\n// Make a petition\n  client.send( 'hello', 'John' );\n```\n\n### Block non-desired connections from unknown IPs\n#### Server\n```js\n// Modules\n  var vertigo = require('vertigo');\n\n// Create server\n  var server = vertigo.createServer(\n\n    8000,\n    null, // Host definition, use falsy values for autoconfiguration\n    [ '127.0.0.1', '192.168.1.42' ] // Accepted IPs. If it isn't defined all IPs are accepted.\n\n  );\n\n// Listen petitions\n  server.on( 'hello', function( name ){\n    console.log( 'I received a message from ' + name );\n  });\n\n```\n\n## Migrating from hermod\nYou can use Vertigo safely, currently the API is the same in both libraries.\n\n## Changelog\n* 0.0.15 ( 2017/10/17 ): Removed unnecessary operation.\n* 0.0.14 ( 2017/10/16 ): `'ECONNRESET'` error is triggered on client when server connection is closed.\n* 0.0.13 ( 2016/08/07 ): Improved `close()` client method.\n* 0.0.12 ( 2016/08/07 ): Fixed bug with `close()` client method.\n* 0.0.11 ( 2016/08/01 ): Fixed little bug with reconnect delay.\n* 0.0.10 ( 2016/07/31 ): Support reconnect delay. Setted 100ms as default.\n* 0.0.9 ( 2016/07/24 ): Allow again create clients with `opts` object as param.\n* 0.0.8 ( 2016/07/21 ): Implemented `close()` client method.\n* 0.0.7 ( 2016/05/09 ): Support TLS secure connections.\n* 0.0.6 ( 2015/10/04 ): Support multirequests. Improved message transmission. Renamed from Hermod to Vertigo.\n* 0.0.5 ( 2014/06/26 ): Limit connections for specific IPs. Support host definition in server.\n* 0.0.4 ( 2014/04/02 ): Optimized and `send()` method support.\n* 0.0.3 ( 2014/04/02 ): Optimized and better documentation.\n* 0.0.2 ( 2014/04/02 ): Optimized and prevent chuncked commands.\n* 0.0.1 ( 2014/03/20 ): First version.\n\n## To Do List\n* `shout()` client method\n* Authentication support\n* Middleware support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInevio%2Fvertigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInevio%2Fvertigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInevio%2Fvertigo/lists"}