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
  • 0da7ffac22e0566438a1e8047d06b8da0620488e
  • tug-dev default
  • amdm3/develop
  • fix/scripts1
  • amdm2/develop
  • amdm2/main
  • playground
  • feat/changelog
  • fix/solution_tests
  • test/full_release_process
  • test/art10_test_execution
  • test/gitlab_files_api
  • test/multiplatform_david
  • trgbot
  • set-sast-config-3
  • set-sast-config-2
  • set-secret-detection-config-2
  • set-secret-detection-config-1
  • set-sast-config-1
  • test-linux-fixes
  • tug-stable
  • Release/v4.3.2
  • v1.0.1
  • v1.0.0
  • Build/v0.7.10.2996
  • v0.7.5b0+2524.multistep
  • Release/v3.3.14.2981-RC
  • Build/v0.7.9.2975
  • Release/v3.3.13.2924
  • Release/v3.3.13.2891-RC
  • Build/0.7.9.2890
  • Build/v0.7.9.2864
  • Build/v0.7.9.2849
  • Build/v0.7.9.2836
  • Release/TrailerTool_V0.9.0.2759
  • Release/TrailerTool_V0.9.0.2735
  • Release/TrailerTool_V0.9.0.2799
  • Release/v3.3.12.2800
  • Release/v3.3.12.2769-RC
  • Build/v0.7.9.2741
  • Build/v0.5.0.1812_VectoFF
41 results

sandbox

  • Clone with SSH
  • Clone with HTTPS
  • Forked from VECTO / VECTO Sim
    Source project has a limited visibility.

    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