Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Select Git revision
  • 5005b05d6c8d74ec2fbcac5ddf91484444475e5f
  • main default protected
2 results

api

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Jelizaveta Zaharova authored
    5005b05d
    History

    Website Translation Service

    Provides API that can be used to create, manage website translation integrations and request translations

    Terminology

    translation system - source language + target language + domain

    Architecture

    
     -----------------------------------             --------------------------------
    |                                   |           |                                |
    |     Translation system service    |   → → →   |           Database             |
    |                                   |   ← ← ←   |                                |
     -----------------------------------             --------------------------------
           
    
    
    
    
    
                    ↓   Request text translations if not cached
                    ↓                   ----------------------------------- 
                    ↓                   |                                   |    
                    → → → → → → → → →   |     Text Translation service      |  
                    ↓                   |                                   |  
                    ↓                   -----------------------------------    
    
    
    
                    ↓   Request available systems for validation
                    ↓                   ----------------------------------- 
                    ↓                   |                                   |    
                    → → → → → → → → →   |         System service            |  
                                        |                                   |  
                                        -----------------------------------    
    
    

    Test

    Using docker compose

    docker-compose up --build

    Benchmark

    Vegeta

    # Install vegeta
    go install github.com/tsenart/vegeta@latest
    
    # Run benchmark
    vegeta attack -targets=vegeta_translate -format=http -duration=30s -rate=500 --output results.bin
    vegeta report -type=text results.bin
    vegeta plot results.bin  > plot.html

    k6

    # influx v2 output plugin
    xk6 build --with github.com/grafana/xk6-output-influxdb
    
    ./k6 run script.js --vus 800 --duration 30s -o xk6-influxdb=http://localhost:8086