Skip to content

A Demo Rest Server using Benthos, PostgreSQL and Redis

Notifications You must be signed in to change notification settings

sansayin/benthos-cached-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

benthos-cached-restful

PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI0MjFweCIgaGVpZ2h0PSIyMDFweCIgdmlld0JveD0iLTAuNSAtMC41IDQyMSAyMDEiIGNvbnRlbnQ9IiZsdDtteGZpbGUgaG9zdD0mcXVvdDtlbWJlZC5kaWFncmFtcy5uZXQmcXVvdDsgbW9kaWZpZWQ9JnF1b3Q7MjAyMy0wNS0yMlQwMjozOTo0MS4zMzNaJnF1b3Q7IGFnZW50PSZxdW90O01vemlsbGEvNS4wIChYMTE7IExpbnV4IHg4Nl82NDsgcnY6MTAyLjApIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvMTAyLjAmcXVvdDsgdmVyc2lvbj0mcXVvdDsyMS4zLjImcXVvdDsgZXRhZz0mcXVvdDtfZy1SMVB3WjR3TS1EWDcwY1A4MCZxdW90OyB0eXBlPSZxdW90O2VtYmVkJnF1b3Q7Jmd0OyZsdDtkaWFncmFtIGlkPSZxdW90OzRoTDgzWHFmcUlmQkx5U2cwbnFWJnF1b3Q7IG5hbWU9JnF1b3Q7UGFnZS0xJnF1b3Q7Jmd0OzFWZE5jNXN3RVAwMVhEdDgrUE5xaHlhSHR2RUV6elErS3JBRnRRSjVaTm5HL2ZWZHdvS01GV2N5VFlQZEU5cTNLMm4xdFBzQUo1am41YTFpNit5clRFQTR2cHVVVG5EaitMNDNDQWI0cUpCRGpVdzh2d1pTeFJNS01rREVmd09CTHFGYm5zQ21FNmlsRkpxdnUyQXNpd0ppM2NHWVV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ZlcmZsb3ctd3JhcDogbm9ybWFsOyI+Q2FjaGUgaW4gUmVkaXM8L2Rpdj48L2Rpdj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PHRleHQgeD0iMjEwIiB5PSIxODQiIGZpbGw9InJnYigwLCAwLCAwKSIgZm9udC1mYW1pbHk9IkhlbHZldGljYSIgZm9udC1zaXplPSIxMnB4IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj5DYWNoZSBpbiBSZWRpczwvdGV4dD48L3N3aXRjaD48L2c+PC9nPjxzd2l0Y2g+PGcgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ii8+PGEgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtNSkiIHhsaW5rOmhyZWY9Imh0dHBzOi8vd3d3LmRyYXdpby5jb20vZG9jL2ZhcS9zdmctZXhwb3J0LXRleHQtcHJvYmxlbXMiIHRhcmdldD0iX2JsYW5rIj48dGV4dCB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LXNpemU9IjEwcHgiIHg9IjUwJSIgeT0iMTAwJSI+VGV4dCBpcyBub3QgU1ZHIC0gY2Fubm90IGRpc3BsYXk8L3RleHQ+PC9hPjwvc3dpdGNoPjwvc3ZnPg==

step1:

Bring up postgres and redis

docker-compose up

step2:

Create table

-- Table: public.sink

-- DROP TABLE IF EXISTS public.sink;

CREATE TABLE IF NOT EXISTS public.sink
(
    negative numeric,
    neutral numeric,
    positive numeric,
    compound numeric
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS public.sink
    OWNER to postgres;

step2

Run the code

go run . -c ./config.yaml

test

Not going to hit the DB after the first run

curl "http://localhost:4195/post" -d "any words" -v

Reference

https://www.benthos.dev

About

A Demo Rest Server using Benthos, PostgreSQL and Redis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages