MongoDB

Tabela de requisitos e performance

Tipo de conector Requisitos mínimos Campos obrigatórios Performance

MongoDB

Versão do driver: 7

Consulte a documentação oficial do MongoDB.

Exemplo com AWS instance:

  • Type: t2.medium

  • OS: Amazon Linux 2 CentOS RHEL (Fedora)

  • Memory: 1 GiB

  • CPU: 2 vCPU

  • Storage: 50 GiB

  • String de conexão: mongo.uri: <value>

    • Exemplo:

mongo.uri: mongodb://root:password@172.18.0.2:27017
  • JMeter: Thread 500, Loop 100

  • Memory: 200 MB

  • Samples: 50000

  • Average latency (ms): 932.13

  • Throughput/second 495.11

Operações

Criar

{
   "operation": "INSERT",
   "collectionName": "myCollection",
   "databaseName": "myDatabase",
   "values": {
       "name": "$body.name",
       "country": "$body.country",
       "zip": "$headerParam.zip",
       "age": $body.age
   }
}

Ler

{
   "operation": "findOneByQuery",
   "collectionName": "myCollection",
   "databaseName": "myDatabase",
   "values": {
       "$body.key": "$body.value"
   }
}
{
   "operation": "findAll",
   "collectionName": "myCollection",
   "databaseName": "myDatabase"
}

Excluir

{
   "operation": "REMOVE",
   "databaseName": "connector-test",
   "collectionName": "connector",
   "values": {
       "$body.key": "$body.value"
   }

Atualizar

{
   "operation": "UPDATE",
   "collectionName": "connector",
   "databaseName": "connector-test",
   "values": {
       "$set": {
           "$body.field": "$body.value"
       }
   },
   "headers": [
       {
           "filter": "{\"$queryParam.param\": \"$queryParam.value\"}"
       }
   ]
}

Exemplo

Veja no gif abaixo um exemplo de instrução do conector MongoDB com a operação criar (insert):

instruction mongodb
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]