example/

directory
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2019 License: Apache-2.0

README

Sample Microservices

Overview

  • this directory contains a simple "calculator" microservice consisting of two services
  • service 1: display logic
    • implemented in Golang only
  • service 2: computation logic
    • implemented in Golang and Java

Go-Go

  • deploy
squashctl deploy demo
# interactive prompt: choose namespaces for each service, choose go-go (or go-java)

Go-Java

  • deploy
squashctl deploy demo
# interactive prompt: choose namespaces for each service, choose go-java (or go-go)

Go (dlv) debug tips

  • set a breakpoint
b main.handler
  • execute current line of code
s
  • resume execution
c
  • pause execution and create a breakpoint
<control-c> # enter dlv control mode
s # stop the target

Java (jdb) debug tips

  • set a breakpoint
stop in io.solo.squash.service2.Service2:23
  • execute current line of code
next
  • resume execution
cont

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL