Could we use sleuth without spring cloud? [closed] - scala

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed last year.
Improve this question
I am working in a project which uses scala and twitter server finagle. Our project's requirement has logging and tracing. While searching, I came across sleuth and zipkin. I am able to integrate zipkin as I found library for finagle but couldn't find any sleuth related library. I have looked into the documentation of sleuth but it only relate to spring. So my question is has anybody used sleuth in other than spring? Is it possible? If anybody has then could you provide documentation or example.

Spring Cloud Sleuth is part of Spring Cloud, it does the followings:
Provides an abstraction (API) above tracing libraries
Instruments other Spring projects and other third-party dependencies
Based on this, the answer for your questions:
Could we use sleuth without spring cloud?
Yes, you can use Spring Cloud Sleuth without using other Spring Cloud projects, there are common things (spring-cloud-commons) that you will get but you don't need to use the other Spring Cloud projects.
has anybody used sleuth in other than spring? Is it possible?
Since Spring Cloud Sleuth is part of the Spring portfolio it was made to work with Spring, while you might be able to hack it and reuse things from spring-cloud-sleuth-api and spring-cloud-sleuth-brave it was not made for this use-case, Spring Cloud Sleuth was made to work with Spring applications.
I would recommend taking a look at OpenZipkin's Brave, it's a tracing library that you can use to instrument your codebase, Sleuth is using it by default.

Related

Which Scala framework for building a REST API with a Cassandra back-end would you suggest? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I want to build a REST API with a Cassandra backend in Scala but since there are many frameworks available and some have limitations for NoSQL databases, I'd like to know what would the better framework choices be.
You shouldn't use a framework for a simple REST API. Simply too large, too much overhead. But the most frameworks exported their JSON libraries:
Spray: https://github.com/spray/spray-json
Lift: https://github.com/lift/lift/tree/master/framework/lift-base/lift-json/
Play: https://www.playframework.com/documentation/2.0/ScalaJson
And lightweight http server:
spray: http://spray.io/documentation/1.2.3/spray-http/
scalatra: http://www.scalatra.org/
some have limitations for NoSQL databases
There are no limitations. You can simply use phantom in your framework or server: https://github.com/outworkers/phantom
The documentation is a bit "clean", but you can find here a nice example: https://github.com/iamthiago/cassandra-phantom
Do you need the API for internal use or as external API? If you use this API only as internal API, it's better to use another protocol like protobuf or Thrift instead of HTTP with JSON. Less overhead.
I like Lift as a flexible and powerful framework for web related stuff. There are a few nice helper tools for building HTTP api: http://simply.liftweb.net/index-Chapter-11.html
Lift comes with some ORM built-in, but you can skip them and use whatever database solution you wish. I personally used Lift both with MongoDB and the casbah driver, and PostgreSQL with Slick.

Performance testing tools for testing rest api's [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have a (asp.net)web service service and I am using Apigee as API management tool. I wanted to know some performance testing tools to test my api's and also wanted to evaluate them based on SSL support, encryption, can be automated, integration with source control(tfs)
Can anybody suggest some tool options or any other information regarding performance testing rest api?
Basically any performance testing tool which supports HTTP(S) protocol and setting headers can be used for load testing APIs.
The most popular tool for web services testing is SoapUI. It can be used for load testing as well.
Other free and open source tools are:
Grinder
Gatling
Apache JMeter
Tsung
See Open Source Load Testing Tools: Which One Should You Use? guide for detailed description of the above softwares, sample test reports and comparison matrix.
Personally I would go for JMeter as SoapUI and Gatling do not scale (i.e. if one machine won't be able to produce the anticipated load it will be your bottleneck), Grinder and Tsung are not that user-friendly (Python and XML test definition formats correspondingly)
Restbird, offer docker deployment and support javascript, python and Golang to add logic, everything is stored in local file system makes it easy to scale .

What is the difference between a platform and a framework? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
There are a couple of topics on Stack Overflow and posts on the web addressing this question:
what is the difference between a framework and a platform
What is the difference between framework, platform and technology?
What's the different between Framework and Platform? Is nodejs both framework and platform? How about V8?
However, none of them really help me understand the actual differences between a framework and a platform as I conceive of them.
Examples of what I mean by:
Framework: Rails, Django or Laravel.
Platform: Node.JS or Meteor
What exactly sets apart a framework from a platform in the above examples?
Framework
A framework could be compared to a skeleton which needs to get some flesh attached to it. This programmatic flesh is usually provided by a specific application that links to and uses parts of the skeleton. So the actual work, ie. filling the holes and connecting the dots, is done by the application.
In programming, frameworks allow programmers to concentrate on the actual tasks they are faced with rather than to waste their time reinventing the wheel. Usually, frameworks are shipped with a set of predefined functions and classes. When using Spring (Java) or Symfony (PHP) for example, programmers do not need to think about things such as persistence, routing and session management too much because the work is done by standardized framework components.
Platform
A platform, on the other hand, provides both the hardware and the software tools needed to run an application - be it a standalone program or one which has been built on top of a framework. Mostly, it comes in the flavor of Platform-as-a-Service (PaaS), meaning that the code-basis of the platform software itself is not distributed or licensed. Rather, it is part of a hosted solution running in a cloud which can be accessed via APIs or GUIs.
Typically, platforms are built as scalable multi-tenancy systems, providing access to many users at the same time, thus using economies of scale to be able to offer services with an affordable price tag. Developers can then use platforms such as force.com or Google App Engine to build and run their own applications. In many cases, these applications are more light-weight than standalone programs because most of the business logic is contained in the platform.
Source:
https://commercetools.com/blog/2015/11/19/framework-vs-platform.html

How to use Rest-Assured for testing REST API [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am new to REST API testing. Is there a guide for beginners on how to test REST APIs?
I will be using Rest-Assured for testing REST APIs. Please guide me from the scratch.
It'll be better to provide a bit more information about (let's say) what language or tool do you plan to use. In any case the answers to your question as it is - will be too broad. Here is something to
guide me from the scratch
Getting Started with RESTful Web Services
SoapUI and Rest services
SoapUI getting started
Rest services and jMeter
JAVA Restful testing
Hope it helps.
UPDATE:
You can use this rest-assured library, since it’s built to scale to simple and more advanced use cases using detailed configuration, filters, specifications etc. Here is additional tutorial.
Another option is Java DSL - it brings the simplicity of using Rest. Also open-source JUnit extension.
Rest-Assured has a getting started section at
https://code.google.com/p/rest-assured/wiki/GettingStarted
There is also great instruction on various blogs like
Part 1 http://www.joecolantonio.com/2014/02/07/rest-testing-with-java-getting-started-with-rest-assured/
Part 2 http://www.joecolantonio.com/2014/02/26/rest-testing-with-java-part-two-getting-started-with-rest-assured/
And also
http://pilhuhn.blogspot.com.au/2013/01/testing-rest-apis-with-rest-assured.html

Is there tools for performance and load testing of REST service? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We have web-application with REST interface. Is there some tools to test it?
A RESTful web app/API is just HTTP, so no specialized tools are needed to test performance (as opposed to functional testing, where specialized tools could be helpful). You basically just need to make a lot of HTTP requests and record the results.
I prefer ApacheBench to more complex tools such as JMeter. It's very simple and easily scriptable — just write a shell script. I also find it oriented on HTTP, while tools like JMeter are designed to support simulating human usage patterns.
https://httpd.apache.org/docs/current/programs/ab.html
Yes, SoapUI and Apache Jakarta JMeter
REST services should be easy to test with jmeter.
As I mentioned in comment better use siege than ab as it has more functionality. But if you need something more complex try JMeter. For JMeter distributed testing you can use JMeter in cloud.